Skip to content
Permalink
Browse files

Fix exception when reloading plugins

  • Loading branch information
nyalldawson committed Apr 26, 2019
1 parent 5e4ea73 commit c0105bdfcfae2ba2d3bb35498dceb51073c6d8f5
Showing with 3 additions and 0 deletions.
  1. +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

0 comments on commit c0105bd

Please sign in to comment.
You can’t perform that action at this time.