From 8184e2d830d9692972e2a379cd180d8849a6951f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 30 Nov 2008 18:12:48 +0900 Subject: [PATCH] fix bug with --- ankiqt/ui/cardlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankiqt/ui/cardlist.py b/ankiqt/ui/cardlist.py index ab3016c52..dd265dacf 100644 --- a/ankiqt/ui/cardlist.py +++ b/ankiqt/ui/cardlist.py @@ -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