Fix exception when reloading plugins

This commit is contained in:
Nyall Dawson 2019-04-26 12:10:14 +10:00
parent 5e4ea73399
commit c0105bdfcf

View File

@ -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