bugfix: editing of table contents didn't work correctly after reloading the data
Was caused by then pending and modified rows list not being reset so they were out of sync with the data.
This commit is contained in:
parent
24751f81dd
commit
f432c2aa68
1 changed files with 2 additions and 0 deletions
|
|
@ -182,6 +182,8 @@ void CrudModel::loadData()
|
||||||
void CrudModel::loadIntoModel(std::shared_ptr<Pgsql::Result> data)
|
void CrudModel::loadIntoModel(std::shared_ptr<Pgsql::Result> data)
|
||||||
{
|
{
|
||||||
beginResetModel();
|
beginResetModel();
|
||||||
|
m_pendingRowList.clear();
|
||||||
|
m_modifiedRowList.clear();
|
||||||
m_roData = data;
|
m_roData = data;
|
||||||
lastRowKey = data->rows();
|
lastRowKey = data->rows();
|
||||||
m_rowCount = data->rows();
|
m_rowCount = data->rows();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue