]> SALOME platform Git repositories - modules/smesh.git/commitdiff
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 f5b7754c2cd8eea6646319e83c28e600709e102b..99c7d49edff9b72dc7bf7164a7d63018f1812b3e 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);