From 5bf0040838b98791498d7273a32dd1a7985d8688 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 26 Apr 2017 11:22:17 +1000 Subject: [PATCH] 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 --- aqt/main.py | 1 - 1 file changed, 1 deletion(-) diff --git a/aqt/main.py b/aqt/main.py index f1a919e3f..adac29a1f 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -667,7 +667,6 @@ title="%s" %s>%s''' % ( "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()