From b3076a410c5a04b2b5f45a4ba3d2ff3b8b20c87a Mon Sep 17 00:00:00 2001 From: David Rosca Date: Wed, 6 Apr 2016 11:02:51 +0200 Subject: [PATCH] SortFilterModel: Invalidate filter when changing filter callback Model is now correctly filtered when setting filter callback. REVIEW: 127588 --- src/declarativeimports/core/datamodel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/declarativeimports/core/datamodel.cpp b/src/declarativeimports/core/datamodel.cpp index 56031056c..06b64e4af 100644 --- a/src/declarativeimports/core/datamodel.cpp +++ b/src/declarativeimports/core/datamodel.cpp @@ -151,6 +151,7 @@ void SortFilterModel::setFilterCallback(const QJSValue& callback) } m_filterCallback = callback; + invalidateFilter(); emit filterCallbackChanged(callback); }