Skip to content

Commit e81d92b

Browse files
author
borysiasty
committed
Plugin Installer minor fix
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13845 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f41be8a commit e81d92b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

python/plugins/plugin_installer/installer_gui.py

+9-6
Original file line numberDiff line numberDiff line change
@@ -689,12 +689,15 @@ def uninstallPlugin(self):
689689
else:
690690
# if the uninstalled plugin is the installer itself, reload it and quit
691691
if key == "plugin_installer":
692-
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."))
694-
reloadPlugin(key)
695-
return
696-
except:
697-
pass
692+
if QGIS_15:
693+
try:
694+
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."))
695+
reloadPlugin(key)
696+
return
697+
except:
698+
pass
699+
else:
700+
QMessageBox.information(self, self.tr("QGIS Python Plugin Installer"), self.tr("Plugin Installer update uninstalled. Please restart QGIS in order to load its primary version."))
698701
# safe remove
699702
try:
700703
unloadPlugin(plugin["localdir"])

0 commit comments

Comments
 (0)