Mercurial > hg > octave-nkf
changeset 20806:99eb26310cb3
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.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Sat, 10 Oct 2015 12:48:10 +0200 |
parents | 46edfbd31ad7 |
children | 69270256b879 |
files | libgui/graphics/Figure.cc |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/graphics/Figure.cc +++ b/libgui/graphics/Figure.cc @@ -723,6 +723,14 @@ enableMouseTracking (); } + case QEvent::ChildRemoved: + if (dynamic_cast<QChildEvent*> (xevent)->child + ()->isWidgetType()) + { + gh_manager::auto_lock lock; + update (figure::properties::ID_TOOLBAR); + } + default: break; }