shutdown correctly before mainwindow exists.
This commit is contained in:
parent
2dfc599e3c
commit
b0cfb281f4
@ -693,8 +693,9 @@ class Application(QApplication):
|
|||||||
log.destroy.debug("Removing eventfilter...")
|
log.destroy.debug("Removing eventfilter...")
|
||||||
self.removeEventFilter(self.modeman)
|
self.removeEventFilter(self.modeman)
|
||||||
# Close all tabs
|
# Close all tabs
|
||||||
log.destroy.debug("Closing tabs...")
|
if self.mainwindow is not None:
|
||||||
self.mainwindow.tabs.shutdown()
|
log.destroy.debug("Closing tabs...")
|
||||||
|
self.mainwindow.tabs.shutdown()
|
||||||
# Save everything
|
# Save everything
|
||||||
if hasattr(self, 'config') and self.config is not None:
|
if hasattr(self, 'config') and self.config is not None:
|
||||||
to_save = []
|
to_save = []
|
||||||
|
Loading…
Reference in New Issue
Block a user