From 77ede46ebb9a8cdddc704a78f8dd8ae1e38d8099 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 19 Jul 2010 22:46:35 +0900 Subject: [PATCH] fix closing logic --- ankiqt/ui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 6c52af96c..75c3428bc 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -878,7 +878,7 @@ Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors") self.deck.rollback() self.deck.close() self.deck = None - if hideWelcome or not synced: + if not hideWelcome and not synced: self.moveToState("noDeck") return True