From ff71cabc2b2079af20685dd4457db5f7e1e457b4 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 27 Sep 2012 22:31:27 +0900 Subject: [PATCH] fix import error with 'raise' --- aqt/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aqt/main.py b/aqt/main.py index 12d9c2c64..511d009af 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -1032,6 +1032,9 @@ will be lost. Continue?""")) # try again in a second return self.progress.timer(1000, lambda: self.onAppMsg(buf), False) elif self.state == "profileManager": + # can't raise window while in profile manager + if buf == "raise": + return self.pendingImport = buf return showInfo(_("Deck will be imported when a profile is opened.")) if not self.interactiveState() or self.progress.busy():