1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-24 09:23:51 +00:00

Refresh filter only if one exists. Fixes Qt warning message "QSortFilterProxyModel: inconsistent changes reported by source model" when a record is deleted.

This commit is contained in:
cc9cii 2015-05-30 18:22:58 +10:00
parent 85a20be321
commit 445f828014

View file

@ -56,6 +56,9 @@ bool CSMWorld::IdTableProxyModel::lessThan(const QModelIndex &left, const QModel
void CSMWorld::IdTableProxyModel::refreshFilter() void CSMWorld::IdTableProxyModel::refreshFilter()
{ {
if (mFilter)
{
updateColumnMap(); updateColumnMap();
invalidateFilter(); invalidateFilter();
}
} }