mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix segfault on qt4.6 by storing index in local var
This commit is contained in:
parent
4a4ec4ad19
commit
aa731470ec
1 changed files with 3 additions and 1 deletions
|
@ -185,8 +185,10 @@ 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])
|
||||
# storing this in a local var first avoids a segfault
|
||||
end = self.index(idx, 1)
|
||||
self.emit(SIGNAL("dataChanged(QModelIndex,QModelIndex)"),
|
||||
index, self.index(index.row(), 1))
|
||||
index, end)
|
||||
except:
|
||||
# called after search changed
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue