shutdown correctly before mainwindow exists.

This commit is contained in:
Florian Bruhin 2014-08-02 01:12:05 +02:00
parent 2dfc599e3c
commit b0cfb281f4

View File

@ -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 = []