Salome HOME
0020145: EDF 666 SMESH: Modifications of GEOM groups are not taken into account
[modules/smesh.git] / src / SMESHGUI / SMESHGUI.cxx
index 4af6cf398b395e4c5fc811bf83d530f41fa85b84..64398d22536eb8eb14db78a4693417bd91aa6269 100644 (file)
@@ -3323,8 +3323,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;
 }