diff --git a/ankiqt/ui/cardlist.py b/ankiqt/ui/cardlist.py index 962dff28c..2e1071f2d 100644 --- a/ankiqt/ui/cardlist.py +++ b/ankiqt/ui/cardlist.py @@ -382,8 +382,7 @@ class EditDeck(QMainWindow): if currentCardIndex >= 0: sm = self.dialog.tableView.selectionModel() sm.clear() - sm.select(self.model.index(currentCardIndex, 0), - QItemSelectionModel.Select | QItemSelectionModel.Rows) + self.dialog.tableView.selectRow(currentCardIndex) self.dialog.tableView.scrollTo( self.model.index(currentCardIndex,0), self.dialog.tableView.PositionAtTop)