From 5e9a68d4c7b5a5606b051a877de38d8487fad30d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 28 Jun 2009 22:23:40 +0900 Subject: [PATCH] fix problem upgrading shared decks --- anki/deck.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/anki/deck.py b/anki/deck.py index d9eb21728..8e187e925 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -2908,6 +2908,10 @@ order by priority desc, due desc""") prog = True deck.startProgress() deck.updateProgress(_("Upgrading Deck...")) + if deck.utcOffset == -1: + # we're opening a shared deck with no indices - we'll need + # them if we want to rebuild the queue + DeckStorage._addIndices(deck) else: prog = False deck.path = path