diff options
Diffstat (limited to 'common/entityreader.cpp')
-rw-r--r-- | common/entityreader.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/common/entityreader.cpp b/common/entityreader.cpp index a3ca8e2..c15f73f 100644 --- a/common/entityreader.cpp +++ b/common/entityreader.cpp | |||
@@ -375,14 +375,10 @@ EntityReader<DomainType>::getFilter(const QSet<QByteArray> remainingFilters, con | |||
375 | } | 375 | } |
376 | for (const auto &filterProperty : remainingFilters) { | 376 | for (const auto &filterProperty : remainingFilters) { |
377 | const auto property = domainObject->getProperty(filterProperty); | 377 | const auto property = domainObject->getProperty(filterProperty); |
378 | if (property.isValid()) { | 378 | const auto comparator = query.propertyFilter.value(filterProperty); |
379 | const auto comparator = query.propertyFilter.value(filterProperty); | 379 | if (!comparator.matches(property)) { |
380 | if (!comparator.matches(property)) { | 380 | Trace() << "Filtering entity due to property mismatch on filter: " << filterProperty << property << ":" << comparator.value; |
381 | Trace() << "Filtering entity due to property mismatch on filter: " << filterProperty << property << ":" << comparator.value; | 381 | return false; |
382 | return false; | ||
383 | } | ||
384 | } else { | ||
385 | Warning() << "Ignored property filter because value is invalid: " << filterProperty; | ||
386 | } | 382 | } |
387 | } | 383 | } |
388 | return true; | 384 | return true; |