SortFilterModel: Invalidate filter when changing filter callback

Model is now correctly filtered when setting filter callback.

REVIEW: 127588
This commit is contained in:
David Rosca 2016-04-06 11:02:51 +02:00
parent 035e061e13
commit b3076a410c

View File

@ -151,6 +151,7 @@ void SortFilterModel::setFilterCallback(const QJSValue& callback)
}
m_filterCallback = callback;
invalidateFilter();
emit filterCallbackChanged(callback);
}