fix errors when closing the main window with browser still open

onClose() was calling closeAllWindows(), which sends a close signal
to dialogs without force=True, causing them to fire an asynchronous
save event that calls back after the collection has been closed

instead we just rely on the fact that unloadCollection() closes all
collection windows
This commit is contained in:
Damien Elmes 2017-04-26 11:22:17 +10:00
parent 7f8f091a37
commit 5bf0040838

View File

@ -667,7 +667,6 @@ title="%s" %s>%s</button>''' % (
"Called from a shortcut key. Close current active window."
aw = self.app.activeWindow()
if not aw or aw == self or force:
self.app.closeAllWindows()
self.unloadProfile(browser=False)
else:
aw.close()