mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
don't fail when trying to update card that's been deleted
This commit is contained in:
parent
0ab355f87d
commit
bc4066f68e
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ where cards.factId = facts.id """
|
||||||
id=self.cards[index.row()][0])
|
id=self.cards[index.row()][0])
|
||||||
self.emit(SIGNAL("dataChanged(QModelIndex,QModelIndex)"),
|
self.emit(SIGNAL("dataChanged(QModelIndex,QModelIndex)"),
|
||||||
index, self.index(index.row(), 1))
|
index, self.index(index.row(), 1))
|
||||||
except IndexError:
|
except:
|
||||||
# called after search changed
|
# called after search changed
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue