Plugin installer update: r13830 follow-up

git-svn-id: http://svn.osgeo.org/qgis/trunk@13832 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
borysiasty 2010-06-28 19:49:28 +00:00
parent afdc73d11b
commit 384d299fb5
2 changed files with 4 additions and 1 deletions

View File

@ -690,6 +690,7 @@ class QgsPluginInstallerDialog(QDialog, Ui_QgsPluginInstallerDialogBase):
# if the uninstalled plugin is the installer itself, reload it and quit
if key == "plugin_installer":
try:
QMessageBox.information(self, self.tr("QGIS Python Plugin Installer"), self.tr("Plugin Installer update uninstalled. Plugin Installer will now close and revert to its primary version. You can find it in the Plugins menu and continue operation."))
reloadPlugin(key)
return
except:

View File

@ -31,6 +31,7 @@ class InstallerPlugin():
self.mainWindow = self.iface.mainWindow
else: # old plugin API
self.mainWindow = self.iface.getMainWindow
self.guiDlg = None
# ----------------------------------------- #
@ -128,7 +129,8 @@ class InstallerPlugin():
self.mainWindow().menuBar().actions()[4].menu().removeAction(self.action)
if self.statusLabel:
self.mainWindow().statusBar().removeWidget(self.statusLabel)
self.guiDlg.close()
if self.guiDlg:
self.guiDlg.close()
# ----------------------------------------- #