From 39c7410d943ee8477b274369a88b43b1f5537dd3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 10 Jul 2009 01:40:23 +0900 Subject: [PATCH] reopen deck after sync in case of subscription --- ankiqt/ui/sync.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ankiqt/ui/sync.py b/ankiqt/ui/sync.py index 9af5ffa4b..cbe9f5cd0 100755 --- a/ankiqt/ui/sync.py +++ b/ankiqt/ui/sync.py @@ -128,6 +128,9 @@ class Sync(QThread): self.setStatus(_("Downloading..."), 0) client.fullSyncFromServer(ret[1], ret[2]) self.setStatus(_("Sync complete."), 0) + # reopen the deck in case we have sources + self.deck = DeckStorage.Deck(self.parent.deckPath) + client.deck = self.deck else: # diff self.setStatus(_("Determining differences..."), 0)