Salome HOME
0021515: EDF 2169 SMESH: groups not in OB
authorvsr <vsr@opencascade.com>
Fri, 23 Mar 2012 14:42:48 +0000 (14:42 +0000)
committervsr <vsr@opencascade.com>
Fri, 23 Mar 2012 14:42:48 +0000 (14:42 +0000)
src/SMESHGUI/SMESHGUI_GroupOnShapeDlg.cxx

index cbb839c229c555c6c4d46394ce591480d61de385..783b6ccf067c2f915132e9ef6d03b7c752dbc5d7 100644 (file)
@@ -353,10 +353,10 @@ bool SMESHGUI_GroupOnShapeOp::onApply()
           anEntryList.append( aSObject->GetID().c_str() );
     }
   }
-  SMESHGUI::Modified();
-
   update( UF_ObjBrowser | UF_Model );
 
+  SMESHGUI::Modified();
+
   // Re-init controls to create the next group
   myElemGeoIDs.clear();
   myNodeGeoIDs.clear();
@@ -367,6 +367,8 @@ 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() );