Skip to content

Commit

Permalink
fix crash at end of application
Browse files Browse the repository at this point in the history
  • Loading branch information
cwiede committed Aug 12, 2020
1 parent 13fc232 commit 5328f47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nexxT/core/AppConsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def startNexT(cfgfile, active, execScripts, execCode, withGui):
mainWindow = Services.getService("MainWindow")
mainWindow.restoreState()
mainWindow.show()
# the reference will still be held by the service, but here we don't need it anymore
del mainWindow
if active is not None:
config.activate(active)
# pylint: disable=unused-variable
Expand Down

0 comments on commit 5328f47

Please sign in to comment.