]> git.mxchange.org Git - flightgear.git/commit
Canvas: Don't crash on removing child hierarchie from map
authorThomas Geymayer <tomgey@gmail.com>
Tue, 18 Sep 2012 21:21:50 +0000 (23:21 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Tue, 18 Sep 2012 21:21:50 +0000 (23:21 +0200)
commit09ac319e87ff8a8e747ef7b5d09e9ecac0276230
tree49a60cea9e38b6603ceafd4a840ada9bebe5441c
parentffbb0a0e5d8915df208dc8042fd3338f04b01dfe
Canvas: Don't crash on removing child hierarchie from map

Currently if a SGPropertyNode is removed from the property tree
only for this single node a childRemoved event is triggered. So
if we just check for a specific child to be removed, we will never
be notified. This commit manually triggers the event recursively
for all children but this should probably go directly into simgear.
src/Canvas/property_based_mgr.cxx
src/Canvas/property_helper.cxx
src/Canvas/property_helper.hxx