# HG changeset patch # User Pantxo Diribarne # Date 1444474090 -7200 # Node ID 99eb26310cb335073e638dc0d95fbb4b23e00b27 # Parent 46edfbd31ad756bcf8b95e014c20f1c67207ca6a Update the state of the toolbar after ui* children have been removed *Figure.cc (Figure::EventNotifyAfter): update the state of the toolbar after an ui* children is removed e.g. by clf. diff -r 46edfbd31ad7 -r 99eb26310cb3 libgui/graphics/Figure.cc --- a/libgui/graphics/Figure.cc Sat Oct 10 12:21:37 2015 +0200 +++ b/libgui/graphics/Figure.cc Sat Oct 10 12:48:10 2015 +0200 @@ -723,6 +723,14 @@ enableMouseTracking (); } + case QEvent::ChildRemoved: + if (dynamic_cast (xevent)->child + ()->isWidgetType()) + { + gh_manager::auto_lock lock; + update (figure::properties::ID_TOOLBAR); + } + default: break; }