From: asl Date: Thu, 6 Oct 2005 09:19:30 +0000 (+0000) Subject: PAL10145 - several root objects in some cases X-Git-Tag: BR-D5-38-2003_D2005-12-19~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bc7a65d02e3b7b6683b485a489f561d1c7522c18;p=modules%2Fgui.git PAL10145 - several root objects in some cases --- diff --git a/src/SalomeApp/SalomeApp_ShowHideOp.cxx b/src/SalomeApp/SalomeApp_ShowHideOp.cxx index d36939326..9fd3f158b 100644 --- a/src/SalomeApp/SalomeApp_ShowHideOp.cxx +++ b/src/SalomeApp/SalomeApp_ShowHideOp.cxx @@ -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( app->loadModule( mod_name ) ); app->addModule( m ); + m->connectToStudy( dynamic_cast( app->activeStudy() ) ); m->setMenuShown( false ); m->setToolShown( false ); }