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:
parent
85a20be321
commit
445f828014
1 changed files with 5 additions and 2 deletions
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue