]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
PAL10533 - main menu is changed after DisplayOnly operation for object from other...
authorasl <asl@opencascade.com>
Thu, 24 Nov 2005 10:01:17 +0000 (10:01 +0000)
committerasl <asl@opencascade.com>
Thu, 24 Nov 2005 10:01:17 +0000 (10:01 +0000)
src/LightApp/LightApp_ShowHideOp.cxx

index 9f2f37c2f1a45fe58cb9a045e565ac7e6096f13f..c1a365b8e8439de6511471c579f11ea180a2a245 100644 (file)
@@ -37,8 +37,11 @@ LightApp_Displayer* LightApp_ShowHideOp::displayer( const QString& mod_name ) co
   if( m )
   {
     m->connectToStudy( dynamic_cast<CAM_Study*>( app->activeStudy() ) );
-    m->setMenuShown( false );
-    m->setToolShown( false );
+    if( m!=app->activeModule() )
+    {
+      m->setMenuShown( false );
+      m->setToolShown( false );
+    }
   }
   return m ? m->displayer() : 0;
 }