diff --git a/ankiqt/ui/cardlist.py b/ankiqt/ui/cardlist.py index f8ded7416..5e786e1bb 100644 --- a/ankiqt/ui/cardlist.py +++ b/ankiqt/ui/cardlist.py @@ -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):