]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
PAL10145 - several root objects in some cases
authorasl <asl@opencascade.com>
Thu, 6 Oct 2005 09:19:30 +0000 (09:19 +0000)
committerasl <asl@opencascade.com>
Thu, 6 Oct 2005 09:19:30 +0000 (09:19 +0000)
src/SalomeApp/SalomeApp_ShowHideOp.cxx

index d36939326d494fd317c9b2b41253100090b7a7f1..9fd3f158bed754521402a323135c9e42a4914078 100644 (file)
@@ -6,6 +6,7 @@
 #include "SalomeApp_Selection.h"
 #include "SalomeApp_Module.h"
 #include "SalomeApp_Displayer.h"
+#include "CAM_Study.h"
 
 SalomeApp_ShowHideOp::SalomeApp_ShowHideOp( ActionType type )
 : SalomeApp_Operation(),
@@ -40,6 +41,7 @@ void SalomeApp_ShowHideOp::startOperation()
   {
     m = dynamic_cast<SalomeApp_Module*>( app->loadModule( mod_name ) );
     app->addModule( m );
+    m->connectToStudy( dynamic_cast<CAM_Study*>( app->activeStudy() ) );
     m->setMenuShown( false );
     m->setToolShown( false );
   }