From e16373cfcfe4bc1d119ddc6ef448f821cd9e02b7 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Sun, 7 Sep 2014 17:10:33 +0200 Subject: [PATCH] Fixed a bug that causes the application to crash if no listener is installed for a Property --- src/properties/property.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/properties/property.cpp b/src/properties/property.cpp index f00890f9bd..b225be2861 100644 --- a/src/properties/property.cpp +++ b/src/properties/property.cpp @@ -127,7 +127,8 @@ void Property::setPropertyOwner(PropertyOwner* owner) } void Property::notifyListener() { - _onChangeCallback(); + if (_onChangeCallback) + _onChangeCallback(); } } // namespace properties