mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
fix bug with <current>
This commit is contained in:
parent
1dca4f73be
commit
8184e2d830
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ class EditDeck(QMainWindow):
|
|||
|
||||
def findCardInDeckModel(self, model, card):
|
||||
for i, thisCard in enumerate(model.cards):
|
||||
if thisCard.id == card.id:
|
||||
if thisCard[0] == card.id:
|
||||
return i
|
||||
return -1
|
||||
|
||||
|
|
Loading…
Reference in a new issue