fix bug in previous change

This commit is contained in:
Damien Elmes 2008-12-21 15:11:58 +09:00
parent 6b89e28b91
commit a5c445369d

View file

@ -382,8 +382,7 @@ class EditDeck(QMainWindow):
if currentCardIndex >= 0: if currentCardIndex >= 0:
sm = self.dialog.tableView.selectionModel() sm = self.dialog.tableView.selectionModel()
sm.clear() sm.clear()
sm.select(self.model.index(currentCardIndex, 0), self.dialog.tableView.selectRow(currentCardIndex)
QItemSelectionModel.Select | QItemSelectionModel.Rows)
self.dialog.tableView.scrollTo( self.dialog.tableView.scrollTo(
self.model.index(currentCardIndex,0), self.model.index(currentCardIndex,0),
self.dialog.tableView.PositionAtTop) self.dialog.tableView.PositionAtTop)