mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
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:
parent
7f8f091a37
commit
5bf0040838
1 changed files with 0 additions and 1 deletions
|
@ -667,7 +667,6 @@ title="%s" %s>%s</button>''' % (
|
||||||
"Called from a shortcut key. Close current active window."
|
"Called from a shortcut key. Close current active window."
|
||||||
aw = self.app.activeWindow()
|
aw = self.app.activeWindow()
|
||||||
if not aw or aw == self or force:
|
if not aw or aw == self or force:
|
||||||
self.app.closeAllWindows()
|
|
||||||
self.unloadProfile(browser=False)
|
self.unloadProfile(browser=False)
|
||||||
else:
|
else:
|
||||||
aw.close()
|
aw.close()
|
||||||
|
|
Loading…
Reference in a new issue