Mercurial > octave-nkf
changeset 20559:88459dd6780f
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.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Sun, 27 Sep 2015 17:12:29 +0200 |
parents | 818122703f1e |
children | 3aea4200da40 |
files | libgui/graphics/Figure.cc |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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<figure> (); - - showFigureToolBar (! hasUiControlChildren (fp)); + update (figure::properties::ID_TOOLBAR); } default: