mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-28 07:59:37 -06:00
Fixed a bug that causes the application to crash if no listener is installed for a Property
This commit is contained in:
@@ -127,7 +127,8 @@ void Property::setPropertyOwner(PropertyOwner* owner)
|
||||
}
|
||||
|
||||
void Property::notifyListener() {
|
||||
_onChangeCallback();
|
||||
if (_onChangeCallback)
|
||||
_onChangeCallback();
|
||||
}
|
||||
|
||||
} // namespace properties
|
||||
|
||||
Reference in New Issue
Block a user