From a16044eab34b132508d7baf95c3272f20178167e Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 23 Mar 2012 14:42:48 +0000 Subject: [PATCH] 0021515: EDF 2169 SMESH: groups not in OB --- src/SMESHGUI/SMESHGUI_GroupOnShapeDlg.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_GroupOnShapeDlg.cxx b/src/SMESHGUI/SMESHGUI_GroupOnShapeDlg.cxx index cbb839c22..783b6ccf0 100644 --- a/src/SMESHGUI/SMESHGUI_GroupOnShapeDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_GroupOnShapeDlg.cxx @@ -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( SUIT_Session::session()->activeApplication() ) ) anApp->browseObjects( anEntryList, isApplyAndClose() ); -- 2.39.2