fix: DbScoreTableModel score committing

This commit is contained in:
283375 2023-10-21 18:59:42 +08:00
parent 7de2eda517
commit dd647d6963
Signed by: 283375
SSH Key Fingerprint: SHA256:UcX0qg6ZOSDOeieKPGokA5h7soykG61nz2uxuQgVLSk

View File

@ -131,7 +131,7 @@ class DbScoreTableModel(DbTableModel):
return False
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()
return True