Skip to content
Browse files
Fix exception when reloading plugins
  • Loading branch information
nyalldawson committed Apr 28, 2019
1 parent 8401db1 commit 551a617909d1de5bfa9bd379f22d897daf1b6cb2
Showing 1 changed file with 3 additions and 0 deletions.
@@ -404,6 +404,9 @@ def _unloadPluginModules(packageName):
mods = _plugin_modules[packageName]

for mod in mods:
if not mod in sys.modules:

# 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 551a617

Please sign in to comment.