use layoutChanged() instead of dataChanged()

This commit is contained in:
Damien Elmes 2010-01-23 18:18:36 +09:00
parent 85a6f4197d
commit 68b8b8a5dc

View file

@ -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), (select created from facts where
facts.id = cards.factId) from cards where id = :id""", facts.id = cards.factId) from cards where id = :id""",
id=self.cards[index.row()][0]) id=self.cards[index.row()][0])
if ankiqt.ui.utils.pyQtBroken: self.emit(SIGNAL("layoutChanged()"))
raise
self.emit(SIGNAL("dataChanged(QModelIndex,QModelIndex)"),
index, self.index(index.row(), 1))
except: except:
# called after search changed # called after search changed
pass pass