From f432c2aa68c989a09d428569e86cff3bab91a38b Mon Sep 17 00:00:00 2001 From: eelke Date: Wed, 14 Nov 2018 19:17:29 +0100 Subject: [PATCH] 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. --- pglab/CrudModel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pglab/CrudModel.cpp b/pglab/CrudModel.cpp index eb7b549..5ecf976 100644 --- a/pglab/CrudModel.cpp +++ b/pglab/CrudModel.cpp @@ -182,6 +182,8 @@ void CrudModel::loadData() void CrudModel::loadIntoModel(std::shared_ptr data) { beginResetModel(); + m_pendingRowList.clear(); + m_modifiedRowList.clear(); m_roData = data; lastRowKey = data->rows(); m_rowCount = data->rows();