mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
afdc73d11b
commit
384d299fb5
@ -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:
|
||||
|
@ -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()
|
||||
|
||||
|
||||
# ----------------------------------------- #
|
||||
|
Loading…
x
Reference in New Issue
Block a user