From 39ed7ff44e98d647e3060edbefe509757934e0c4 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 2 Oct 2010 11:38:19 +0900 Subject: [PATCH] fix deckPath=none error for clockoff case --- 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 75f47ba5e..2a237f948 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -2240,7 +2240,7 @@ Are you sure?""" % deckName), # after sync all, so refresh browser list self.browserLastRefreshed = 0 self.moveToState("noDeck") - elif self.loadAfterSync: + elif self.loadAfterSync and self.deckPath: if self.loadAfterSync == 2: name = re.sub("[<>]", "", self.syncName) p = os.path.join(self.documentDir, name + ".anki")