[Backport release-9.x] fix beginResetModel called before endResetModel (#3486)

This commit is contained in:
Alexandru Ionut Tripon 2025-03-09 14:05:42 +02:00 committed by GitHub
commit 70ca7af205
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -307,6 +307,7 @@ void VersionProxyModel::setSourceModel(QAbstractItemModel* replacingRaw)
if (!replacing) { if (!replacing) {
roles.clear(); roles.clear();
filterModel->setSourceModel(replacing); filterModel->setSourceModel(replacing);
endResetModel();
return; return;
} }