This commit is contained in:
Christopher T. Johnson
2024-03-21 09:40:21 -04:00
parent e041ec825d
commit 6992261295
3 changed files with 17 additions and 9 deletions

View File

@@ -105,7 +105,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
def addPerson(self) -> None:
dlg = PersonDialog()
dlg.exec()
model = cast(QSqlQueryModel,self.peopleView.model())
model = cast(QSqlQueryModel, self.peopleView.model())
assert model is not None
model.setQuery(model.query())
return