From: asl Date: Thu, 24 Nov 2005 10:01:17 +0000 (+0000) Subject: PAL10533 - main menu is changed after DisplayOnly operation for object from other... X-Git-Tag: BR_3_1_0_deb~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5c1ab3d8687adbc465075ae327e83e61c129cddb;p=modules%2Fgui.git PAL10533 - main menu is changed after DisplayOnly operation for object from other module --- diff --git a/src/LightApp/LightApp_ShowHideOp.cxx b/src/LightApp/LightApp_ShowHideOp.cxx index 9f2f37c2f..c1a365b8e 100644 --- a/src/LightApp/LightApp_ShowHideOp.cxx +++ b/src/LightApp/LightApp_ShowHideOp.cxx @@ -37,8 +37,11 @@ LightApp_Displayer* LightApp_ShowHideOp::displayer( const QString& mod_name ) co if( m ) { m->connectToStudy( dynamic_cast( app->activeStudy() ) ); - m->setMenuShown( false ); - m->setToolShown( false ); + if( m!=app->activeModule() ) + { + m->setMenuShown( false ); + m->setToolShown( false ); + } } return m ? m->displayer() : 0; }