Skip to content

Commit 384d299

Browse files
author
borysiasty
committed
Plugin installer update: r13830 follow-up
git-svn-id: http://svn.osgeo.org/qgis/trunk@13832 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent afdc73d commit 384d299

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

python/plugins/plugin_installer/installer_gui.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@ def uninstallPlugin(self):
690690
# if the uninstalled plugin is the installer itself, reload it and quit
691691
if key == "plugin_installer":
692692
try:
693+
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."))
693694
reloadPlugin(key)
694695
return
695696
except:

python/plugins/plugin_installer/installer_plugin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def __init__(self, iface):
3131
self.mainWindow = self.iface.mainWindow
3232
else: # old plugin API
3333
self.mainWindow = self.iface.getMainWindow
34+
self.guiDlg = None
3435

3536

3637
# ----------------------------------------- #
@@ -128,7 +129,8 @@ def unload(self):
128129
self.mainWindow().menuBar().actions()[4].menu().removeAction(self.action)
129130
if self.statusLabel:
130131
self.mainWindow().statusBar().removeWidget(self.statusLabel)
131-
self.guiDlg.close()
132+
if self.guiDlg:
133+
self.guiDlg.close()
132134

133135

134136
# ----------------------------------------- #

0 commit comments

Comments
 (0)