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...")
self.removeEventFilter(self.modeman)
# Close all tabs
log.destroy.debug("Closing tabs...")
self.mainwindow.tabs.shutdown()
if self.mainwindow is not None:
log.destroy.debug("Closing tabs...")
self.mainwindow.tabs.shutdown()
# Save everything
if hasattr(self, 'config') and self.config is not None:
to_save = []