diff options
-rw-r--r-- | src/sql/models/qsqltablemodel.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/sql/models/qsqltablemodel.cpp b/src/sql/models/qsqltablemodel.cpp index 0d171942877..5a6c239ee6a 100644 --- a/src/sql/models/qsqltablemodel.cpp +++ b/src/sql/models/qsqltablemodel.cpp @@ -1108,9 +1108,6 @@ bool QSqlTableModel::insertRows(int row, int count, const QModelIndex &parent) d->busyInsertingRows = true; beginInsertRows(parent, row, row + count - 1); - if (d->strategy != OnManualSubmit) - d->cache.empty(); - if (!d->cache.isEmpty()) { QMap<int, QSqlTableModelPrivate::ModifiedRow>::Iterator it = d->cache.end(); while (it != d->cache.begin() && (--it).key() >= row) { |