Salome HOME
0022571: [CEA 1152] if selection disabled, impossible to select a mesh in "Merge...
authormpa <mpa@opencascade.com>
Fri, 25 Apr 2014 06:52:26 +0000 (10:52 +0400)
committermpa <mpa@opencascade.com>
Fri, 25 Apr 2014 06:52:26 +0000 (10:52 +0400)
src/SMESHGUI/SMESHGUI_MergeDlg.cxx

index f5b7754..99c7d49 100644 (file)
@@ -682,6 +682,8 @@ bool SMESHGUI_MergeDlg::ClickOnApply()
   
   ListCoincident->clear();
   
+  myEditCurrentArgument = (QWidget*)LineEditMesh;
+
   SMESH::UpdateView();
   SMESHGUI::Modified();
   
@@ -1139,7 +1141,7 @@ void SMESHGUI_MergeDlg::SelectionIntoArgument()
     if (!myActor)
       myActor = SMESH::FindActorByObject(myMesh);
     
-    if ( myActor && myTypeId ==1 ) {
+    if ( myActor && myTypeId == 1 && mySelector->IsSelectionEnabled() ) {
       mySubMeshOrGroup = SMESH::SMESH_IDSource::_nil();
       mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter);