mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
fix bug in previous change
This commit is contained in:
parent
6b89e28b91
commit
a5c445369d
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue