From bf5865bc7be08188e5283df03228e2e8bd052639 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 10 Jan 2009 18:12:45 +0900 Subject: [PATCH] make sure user has saved deck first --- ankiqt/ui/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index e304f4bf4..cc6e10333 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -1404,6 +1404,9 @@ day = :d""", d=yesterday) p=self.config['syncPassword'] if not u or not p: return + if self.deck: + if not self.deck.path: + self.onSave() if self.deck and not self.deck.syncName: if interactive: self.onDeckProperties()