From 618bfe13e5af819722972cfbfaebf272f14f7a06 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 20 Dec 2008 14:14:28 +0900 Subject: [PATCH] make sure to close all dialogs when opening new deck --- ankiqt/ui/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 412b1b8aa..5eacc5b31 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -638,6 +638,8 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2}) os.unlink(path) if not hideWelcome: self.moveToState("noDeck") + else: + ui.dialogs.closeAll() return True def onNew(self):