From 68b8b8a5dc6e729c4aecbb31bc87c20d22b620b8 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 23 Jan 2010 18:18:36 +0900 Subject: [PATCH] use layoutChanged() instead of dataChanged() --- ankiqt/ui/cardlist.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ankiqt/ui/cardlist.py b/ankiqt/ui/cardlist.py index 8bf3aca3c..49f1ee08f 100644 --- a/ankiqt/ui/cardlist.py +++ b/ankiqt/ui/cardlist.py @@ -185,10 +185,7 @@ interval, factor, noCount, priority, (select tags from facts where facts.id = cards.factId), (select created from facts where facts.id = cards.factId) from cards where id = :id""", id=self.cards[index.row()][0]) - if ankiqt.ui.utils.pyQtBroken: - raise - self.emit(SIGNAL("dataChanged(QModelIndex,QModelIndex)"), - index, self.index(index.row(), 1)) + self.emit(SIGNAL("layoutChanged()")) except: # called after search changed pass