From 5c1ab3d8687adbc465075ae327e83e61c129cddb Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 24 Nov 2005 10:01:17 +0000 Subject: [PATCH] PAL10533 - main menu is changed after DisplayOnly operation for object from other module --- src/LightApp/LightApp_ShowHideOp.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 2.39.2