diff --git a/src/base/property_enumeration.cpp b/src/base/property_enumeration.cpp index 1ef57091..5a009912 100644 --- a/src/base/property_enumeration.cpp +++ b/src/base/property_enumeration.cpp @@ -16,7 +16,7 @@ PropertyEnumeration::PropertyEnumeration( ) : Property(grp, name), m_enumeration(enumeration), - m_value(enumeration && enumeration->empty() ? enumeration->itemAt(0).value : -1) + m_value(enumeration && !enumeration->empty() ? enumeration->itemAt(0).value : -1) { }