mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -04: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]
|
mods = _plugin_modules[packageName]
|
||||||
|
|
||||||
for mod in mods:
|
for mod in mods:
|
||||||
|
if not mod in sys.modules:
|
||||||
|
continue
|
||||||
|
|
||||||
# if it looks like a Qt resource file, try to do a cleanup
|
# 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
|
# otherwise we might experience a segfault next time the plugin is loaded
|
||||||
# because Qt will try to access invalid plugin resource data
|
# because Qt will try to access invalid plugin resource data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user