mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
handle case where there is no active window
This commit is contained in:
parent
42159eac4f
commit
4438ea62f6
1 changed files with 1 additions and 1 deletions
|
@ -785,7 +785,7 @@ Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors")
|
|||
##########################################################################
|
||||
|
||||
def onClose(self):
|
||||
if self.inMainWindow():
|
||||
if self.inMainWindow() or not self.app.activeWindow():
|
||||
isCram = self.isCramming()
|
||||
self.saveAndClose(hideWelcome=isCram)
|
||||
if isCram:
|
||||
|
|
Loading…
Reference in a new issue