# 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 --git a/libgui/graphics/Figure.cc b/libgui/graphics/Figure.cc --- a/libgui/graphics/Figure.cc +++ b/libgui/graphics/Figure.cc @@ -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; }