Salome HOME
From NewGEOM: activation of SMESH after any module without object browser crashes...
authorvsr <vsr@opencascade.com>
Wed, 24 Jun 2015 16:01:14 +0000 (19:01 +0300)
committervsr <vsr@opencascade.com>
Wed, 24 Jun 2015 16:01:14 +0000 (19:01 +0300)
src/SMESHGUI/SMESHGUI.cxx

index e434b8c4f70b731c6fe4fc215556325ab6f67f8f..1214bf1910e748e16b825d46ab25592617edb3bc 100644 (file)
@@ -4789,11 +4789,10 @@ bool SMESHGUI::activateModule( SUIT_Study* study )
 
   //  0020210. Make SMESH_Gen update meshes at switching GEOM->SMESH
   GetSMESHGen()->SetCurrentStudy(SALOMEDS::Study::_nil());
 
   //  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 ( SalomeApp_Study* s = dynamic_cast<SalomeApp_Study*>( study )) {
+    if ( _PTR(Study) aStudy = s->studyDS() )
       GetSMESHGen()->SetCurrentStudy( _CAST(Study,aStudy)->GetStudy() );
       GetSMESHGen()->SetCurrentStudy( _CAST(Study,aStudy)->GetStudy() );
-      updateObjBrowser(); // objects can be removed
-    }
+  }
 
   // get all view currently opened in the study and connect their signals  to
   // the corresponding slots of the class.
 
   // get all view currently opened in the study and connect their signals  to
   // the corresponding slots of the class.