mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
Fix exception when reloading plugins
This commit is contained in:
parent
5e4ea73399
commit
c0105bdfcf
@ -445,6 +445,9 @@ def _unloadPluginModules(packageName):
|
||||
mods = _plugin_modules[packageName]
|
||||
|
||||
for mod in mods:
|
||||
if not mod in sys.modules:
|
||||
continue
|
||||
|
||||
# if it looks like a Qt resource file, try to do a cleanup
|
||||
# otherwise we might experience a segfault next time the plugin is loaded
|
||||
# because Qt will try to access invalid plugin resource data
|
||||
|
Loading…
x
Reference in New Issue
Block a user