From 21e21a1fa8621433783e0d0eb11710c09a74f679 Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 10 Apr 2020 10:41:00 +0100 Subject: [PATCH] Allow TiedPropertyList to fire valueChanged --- simgear/props/tiedpropertylist.hxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/simgear/props/tiedpropertylist.hxx b/simgear/props/tiedpropertylist.hxx index 4e597af0..731de456 100644 --- a/simgear/props/tiedpropertylist.hxx +++ b/simgear/props/tiedpropertylist.hxx @@ -134,6 +134,13 @@ public: for (std::vector::iterator it=begin() ; it < end(); it++ ) (*it)->setAttribute(attr, state); } + + void fireValueChanged() + { + for (const auto& p : *this) { + p->fireValueChanged(); + } + } private: SGPropertyNode_ptr _root; };