aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/tools/propertyfinder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/tools/propertyfinder.cpp')
-rw-r--r--src/lib/corelib/tools/propertyfinder.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/corelib/tools/propertyfinder.cpp b/src/lib/corelib/tools/propertyfinder.cpp
index 96c081f01..d5ef0d648 100644
--- a/src/lib/corelib/tools/propertyfinder.cpp
+++ b/src/lib/corelib/tools/propertyfinder.cpp
@@ -82,8 +82,7 @@ void PropertyFinder::findModuleValues(const QVariantMap &properties, bool search
void PropertyFinder::addToList(const QVariant &value)
{
- // Note: This means that manually setting a property to "null" will not lead to a "hit".
- if (!value.isNull() && !m_values.contains(value))
+ if (value.isValid() && !m_values.contains(value))
m_values << value;
}