mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
use layoutChanged() instead of dataChanged()
This commit is contained in:
parent
85a6f4197d
commit
68b8b8a5dc
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue