Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix exception when reloading plugins
- Loading branch information
Showing
with
3 additions
and
0 deletions.
-
+3
−0
python/utils.py
|
@@ -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 |
|
|