diff --git a/src/sql/models/qsqltablemodel.cpp b/src/sql/models/qsqltablemodel.cpp index 0d171942877..719f526d78b 100644 --- a/src/sql/models/qsqltablemodel.cpp +++ b/src/sql/models/qsqltablemodel.cpp @@ -1109,7 +1109,7 @@ bool QSqlTableModel::insertRows(int row, int count, const QModelIndex &parent) beginInsertRows(parent, row, row + count - 1); if (d->strategy != OnManualSubmit) - d->cache.empty(); + d->cache.clear(); if (!d->cache.isEmpty()) { QMap::Iterator it = d->cache.end();