From 6b5ec926275ec3d0431ce74c5c5af905f407aa24 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sat, 9 Apr 2016 20:23:07 +0200 Subject: Treat the type filter specially Because otherwise the filter will never match if we filter by type. --- common/resourcefacade.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common') diff --git a/common/resourcefacade.cpp b/common/resourcefacade.cpp index 35f7f46..4bf4962 100644 --- a/common/resourcefacade.cpp +++ b/common/resourcefacade.cpp @@ -97,6 +97,9 @@ KAsync::Job ResourceFacade::remove(const Sink::ApplicationDomain::SinkReso static bool matchesFilter(const QHash &filter, const QMap &properties) { for (const auto &filterProperty : filter.keys()) { + if (filterProperty == "type") { + continue; + } if (filter.value(filterProperty).toByteArray() != properties.value(filterProperty).toByteArray()) { return false; } -- cgit v1.2.3