# HG changeset patch # User Pantxo Diribarne # Date 1443366749 -7200 # Node ID 88459dd6780fb04562a7f7f203ecc14da8e7b5f8 # Parent 818122703f1e27c0d90249b83b85e250b2132326 Fix inconsistent toolbar state after creating an uicontrol (bug #46025) * Figure.cc (Figure::eventNotifyAfter): when a child has been created, use update method to properly decide whether to show the toolbar. diff -r 818122703f1e -r 88459dd6780f libgui/graphics/Figure.cc --- a/libgui/graphics/Figure.cc Sat Sep 26 16:32:28 2015 +0100 +++ b/libgui/graphics/Figure.cc Sun Sep 27 17:12:29 2015 +0200 @@ -734,9 +734,7 @@ ()->isWidgetType()) { gh_manager::auto_lock lock; - const figure::properties& fp = properties
(); - - showFigureToolBar (! hasUiControlChildren (fp)); + update (figure::properties::ID_TOOLBAR); } default: