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