mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Plugin Installer minor fix
git-svn-id: http://svn.osgeo.org/qgis/trunk@13845 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
06f15b15f8
commit
a582b48bd0
@ -689,12 +689,15 @@ class QgsPluginInstallerDialog(QDialog, Ui_QgsPluginInstallerDialogBase):
|
|||||||
else:
|
else:
|
||||||
# if the uninstalled plugin is the installer itself, reload it and quit
|
# if the uninstalled plugin is the installer itself, reload it and quit
|
||||||
if key == "plugin_installer":
|
if key == "plugin_installer":
|
||||||
try:
|
if QGIS_15:
|
||||||
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."))
|
try:
|
||||||
reloadPlugin(key)
|
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."))
|
||||||
return
|
reloadPlugin(key)
|
||||||
except:
|
return
|
||||||
pass
|
except:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
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."))
|
||||||
# safe remove
|
# safe remove
|
||||||
try:
|
try:
|
||||||
unloadPlugin(plugin["localdir"])
|
unloadPlugin(plugin["localdir"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user