mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-07-01 12:26:26 +00:00
fix: DbScoreTableModel
score committing
This commit is contained in:
@ -131,7 +131,7 @@ class DbScoreTableModel(DbTableModel):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
if index.column() == 2 and isinstance(value, Score) and role == self.ScoreRole:
|
if index.column() == 2 and isinstance(value, Score) and role == self.ScoreRole:
|
||||||
self._db.update_score(self.__items[index.row()][self.IdRole], value)
|
self._db.update_score(value)
|
||||||
self.syncDb()
|
self.syncDb()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user