Salome HOME
Fix for the problem: click "Apply" button unselects mesh.
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_TranslationDlg.cxx
index 6ea4bbf29ab2ab2730ae5ac089f59966caed990c..1df8f02eba9b88eabb6d127dd1b4b5215b99ac63 100644 (file)
@@ -447,10 +447,10 @@ void SMESHGUI_TranslationDlg::ClickOnApply()
     } catch (...) {
     }
 
-    mySelectionMgr->clearSelected();
     SMESH::UpdateView();
     Init(false);
     ConstructorsClicked(GetConstructorId());
+    SelectionIntoArgument();
   }
 }
 
@@ -624,7 +624,7 @@ void SMESHGUI_TranslationDlg::SelectionIntoArgument()
         aNbUnits = anElementsIds->length();
       }
     } else {
-      aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, myActor->getIO(), aString);
+      aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, IO, aString);
       myElementsId = aString;
     }