Salome HOME
0020749: EDF 1291 SMESH : Create 2D Mesh from 3D improvement
authorvsr <vsr@opencascade.com>
Thu, 30 Aug 2012 13:57:33 +0000 (13:57 +0000)
committervsr <vsr@opencascade.com>
Thu, 30 Aug 2012 13:57:33 +0000 (13:57 +0000)
(Fix problem with Object browser updating)
- Revert fix made for issue "0021515: EDF 2169 SMESH: groups not in OB" - it is no more required since actual problem is solved by fix for issue 0020749.

src/SMESHGUI/SMESHGUI_GroupOnShapeDlg.cxx

index 2bfdd1bc948ed16c0d4ad93b626c8138eb087201..e62b015c2f53d0b0221642f1294a0cc3dbb6fc61 100644 (file)
@@ -353,10 +353,10 @@ bool SMESHGUI_GroupOnShapeOp::onApply()
           anEntryList.append( aSObject->GetID().c_str() );
     }
   }
-  update( UF_ObjBrowser | UF_Model );
-
   SMESHGUI::Modified();
 
+  update( UF_ObjBrowser | UF_Model );
+
   // Re-init controls to create the next group
   myElemGeoIDs.clear();
   myNodeGeoIDs.clear();
@@ -367,8 +367,6 @@ bool SMESHGUI_GroupOnShapeOp::onApply()
   myDlg->myNodeGeomBtn->setChecked(false);
   myDlg->updateButtons();
 
-  update( UF_ObjBrowser | UF_Model );
-
   if( LightApp_Application* anApp =
       dynamic_cast<LightApp_Application*>( SUIT_Session::session()->activeApplication() ) )
     anApp->browseObjects( anEntryList, isApplyAndClose() );