diff options
Diffstat (limited to 'common/query.cpp')
-rw-r--r-- | common/query.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/query.cpp b/common/query.cpp index fd99367..3de80d8 100644 --- a/common/query.cpp +++ b/common/query.cpp | |||
@@ -51,6 +51,9 @@ bool Query::Comparator::matches(const QVariant &v) const | |||
51 | switch(comparator) { | 51 | switch(comparator) { |
52 | case Equals: | 52 | case Equals: |
53 | if (!v.isValid()) { | 53 | if (!v.isValid()) { |
54 | if (!value.isValid()) { | ||
55 | return true; | ||
56 | } | ||
54 | return false; | 57 | return false; |
55 | } | 58 | } |
56 | return v == value; | 59 | return v == value; |