diff --git a/src/sqlitetablemodel.cpp b/src/sqlitetablemodel.cpp index e0cacb5c..faf54fe7 100644 --- a/src/sqlitetablemodel.cpp +++ b/src/sqlitetablemodel.cpp @@ -172,6 +172,8 @@ bool SqliteTableModel::insertRows(int row, int count, const QModelIndex& parent) m_data[row].replace(0, QByteArray::number(m_db->addRecord(m_sTable))); } + m_rowCount += count; + endInsertRows(); return true; } @@ -186,6 +188,8 @@ bool SqliteTableModel::removeRows(int row, int count, const QModelIndex& parent) m_data.removeAt(row + i); } + m_rowCount -= count; + endRemoveRows(); return true; }