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();