From ae89409ae74078d263d90d6d60659c72a739b656 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 9 Feb 2011 17:52:18 +0900 Subject: [PATCH] don't do anything if there are no decks to sync; warn user --- ankiqt/ui/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 6576c4ed1..4bb05ae3f 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -2219,6 +2219,12 @@ DropBox. Click help to learn more, and OK to continue syncing."""), self.loadAfterSync = -1 self.syncName = None self.syncDecks = self.decksToSync() + if not self.syncDecks: + if interactive: + ui.utils.showInfo(_("""\ +Please open a deck and run File>Sync. After you do this once, the deck \ +will sync automatically from then on.""")) + return else: # sync one deck # hide all deck-associated dialogs