Salome HOME
0020145: EDF 666 SMESH: Modifications of GEOM groups are not taken into account
authoreap <eap@opencascade.com>
Mon, 25 May 2009 11:31:07 +0000 (11:31 +0000)
committereap <eap@opencascade.com>
Mon, 25 May 2009 11:31:07 +0000 (11:31 +0000)
   update object browser as some object can be removed

src/SMESHGUI/SMESHGUI.cxx

index d9ee51032f477d8736a2253a8c2fcff21d46c7df..685ebbc35b9e686eb89e0a32616e9c736d09b6db 100644 (file)
@@ -3255,8 +3255,10 @@ bool SMESHGUI::activateModule( SUIT_Study* study )
   //  0020210. Make SMESH_Gen update meshes at switching GEOM->SMESH
   GetSMESHGen()->SetCurrentStudy(SALOMEDS::Study::_nil());
   if ( SalomeApp_Study* s = dynamic_cast<SalomeApp_Study*>( study ))
-    if ( _PTR(Study) aStudy = s->studyDS())
+    if ( _PTR(Study) aStudy = s->studyDS()) {
       GetSMESHGen()->SetCurrentStudy( _CAST(Study,aStudy)->GetStudy() );
+      updateObjBrowser(); // objects can be removed
+    }
 
   return res;
 }