mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
don't die if last card deleted
This commit is contained in:
parent
4908ca96bc
commit
749bcad2fe
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ class EditDeck(QMainWindow):
|
|||
else:
|
||||
self.dialog.actionRedo.setEnabled(False)
|
||||
# update list
|
||||
if self.currentRow:
|
||||
if self.currentRow and self.model.cards:
|
||||
self.model.updateCard(self.currentRow)
|
||||
|
||||
def filterTextChanged(self):
|
||||
|
|
Loading…
Reference in a new issue