mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-16 03:40:16 +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
@ -56,6 +56,9 @@ bool CSMWorld::IdTableProxyModel::lessThan(const QModelIndex &left, const QModel
|
|||||||
|
|
||||||
void CSMWorld::IdTableProxyModel::refreshFilter()
|
void CSMWorld::IdTableProxyModel::refreshFilter()
|
||||||
{
|
{
|
||||||
updateColumnMap();
|
if (mFilter)
|
||||||
invalidateFilter();
|
{
|
||||||
|
updateColumnMap();
|
||||||
|
invalidateFilter();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user