Mercurial > octave-nkf
comparison libgui/graphics/Figure.cc @ 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 | b6ae0ef9327e |
children | dcfbf4c1c3c8 |
comparison
equal
deleted
inserted
replaced
20557:818122703f1e | 20559:88459dd6780f |
---|---|
732 case QEvent::ChildAdded: | 732 case QEvent::ChildAdded: |
733 if (dynamic_cast<QChildEvent*> (xevent)->child | 733 if (dynamic_cast<QChildEvent*> (xevent)->child |
734 ()->isWidgetType()) | 734 ()->isWidgetType()) |
735 { | 735 { |
736 gh_manager::auto_lock lock; | 736 gh_manager::auto_lock lock; |
737 const figure::properties& fp = properties<figure> (); | 737 update (figure::properties::ID_TOOLBAR); |
738 | |
739 showFigureToolBar (! hasUiControlChildren (fp)); | |
740 } | 738 } |
741 | 739 |
742 default: | 740 default: |
743 break; | 741 break; |
744 } | 742 } |