mirror of
https://github.com/rbreu/beeref.git
synced 2026-03-11 08:54:28 +00:00
Fix crash on exit by uninstalling Qt message handler
If we don't uninstall the message handler before exiting, if Qt has messages to send after the python application side has been destroyed, Qt will crash trying to call the python interpreter. One examples of such messages are the ones that are enabled through QT_DEBUG_PLUGINS, which report the libraries that get unloaded.
This commit is contained in:
parent
f6b4c9491b
commit
c6a68116e6
1 changed files with 1 additions and 0 deletions
|
|
@ -123,6 +123,7 @@ def main():
|
|||
del bee
|
||||
del app
|
||||
logger.debug('BeeRef closed')
|
||||
QtCore.qInstallMessageHandler(None)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Reference in a new issue