mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix problem upgrading shared decks
This commit is contained in:
parent
b1f213644e
commit
5e9a68d4c7
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue