From 0a87036246ec50ab2e946358208c404817beb899 Mon Sep 17 00:00:00 2001 From: imn Date: Wed, 10 Sep 2014 11:28:29 +0400 Subject: [PATCH] Fix bugs with improper toolbar updating on Minimize/Maximize operation --- src/OCCViewer/OCCViewer_ViewFrame.cxx | 4 +--- src/Qtx/QtxActionToolMgr.cxx | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/OCCViewer/OCCViewer_ViewFrame.cxx b/src/OCCViewer/OCCViewer_ViewFrame.cxx index cc20fd473..33e1a4d64 100644 --- a/src/OCCViewer/OCCViewer_ViewFrame.cxx +++ b/src/OCCViewer/OCCViewer_ViewFrame.cxx @@ -131,9 +131,7 @@ void OCCViewer_ViewFrame::onMaximizedView( OCCViewer_ViewWindow* theView, bool i mySplitMode = CreateSubViewsDlg.getSplitMode(); myViewsMode = CreateSubViewsDlg.getViewsMode(); splitSubViews(); - } - else { - myMaximizedView->setMaximized(true); + myMaximizedView->setMaximized(false, false); } } myLayout->invalidate(); diff --git a/src/Qtx/QtxActionToolMgr.cxx b/src/Qtx/QtxActionToolMgr.cxx index 8b890c177..729f4d9d7 100644 --- a/src/Qtx/QtxActionToolMgr.cxx +++ b/src/Qtx/QtxActionToolMgr.cxx @@ -749,8 +749,10 @@ void QtxActionToolMgr::setVisible( const int id, const int tid, const bool on ) } } - if ( changed ) + if ( changed ) { triggerUpdate( tid ); + updateContent(); + } } /*! -- 2.39.2