fix problem upgrading shared decks

This commit is contained in:
Damien Elmes 2009-06-28 22:23:40 +09:00
parent b1f213644e
commit 5e9a68d4c7

View file

@ -2908,6 +2908,10 @@ order by priority desc, due desc""")
prog = True prog = True
deck.startProgress() deck.startProgress()
deck.updateProgress(_("Upgrading Deck...")) 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: else:
prog = False prog = False
deck.path = path deck.path = path