Fixed a bug that causes the application to crash if no listener is installed for a Property

This commit is contained in:
Alexander Bock
2014-09-07 17:10:33 +02:00
parent fb24f06e5a
commit e16373cfcf

View File

@@ -127,7 +127,8 @@ void Property::setPropertyOwner(PropertyOwner* owner)
}
void Property::notifyListener() {
_onChangeCallback();
if (_onChangeCallback)
_onChangeCallback();
}
} // namespace properties