handle case where there is no active window

This commit is contained in:
Damien Elmes 2010-01-23 21:35:15 +09:00
parent 42159eac4f
commit 4438ea62f6

View file

@ -785,7 +785,7 @@ Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors")
########################################################################## ##########################################################################
def onClose(self): def onClose(self):
if self.inMainWindow(): if self.inMainWindow() or not self.app.activeWindow():
isCram = self.isCramming() isCram = self.isCramming()
self.saveAndClose(hideWelcome=isCram) self.saveAndClose(hideWelcome=isCram)
if isCram: if isCram: