Skip to content
Browse files
[Plugin Installer] partially revert fd2b221 . Still QGIS restart is n…
…eeded after plugin update in some cases.
  • Loading branch information
borysiasty committed Jun 26, 2013
1 parent fe913a3 commit afbc9b840848764b6c83b43cc8b7cc2291095433
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/pyplugin_installer/
@@ -319,13 +319,14 @@ def installPlugin(self, key, quiet=False):
settings = QSettings()
settings.setValue("/PythonPlugins/"+plugin["id"], True)
infoString = ("Plugin reinstalled successfully"),"Plugin reinstalled successfully"))
settings = QSettings()
if settings.value("/PythonPlugins/"+key, False, type=bool):
if settings.value("/PythonPlugins/"+key, False, type=bool): # plugin will be reloaded on the fly only if currently loaded
reloadPlugin(key) # unloadPlugin + loadPlugin + startPlugin
infoString = ("Plugin reinstalled successfully"),"Plugin reinstalled successfully"))
unloadPlugin(key) # Just for a case. Will exit quietly if really not loaded
infoString = ("Plugin reinstalled successfully"),"Python plugin reinstalled.\nYou need to restart QGIS in order to reload it."))
if quiet:
infoString = (None, None)

0 comments on commit afbc9b8

Please sign in to comment.