]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for Bug IPAL9624 ( 3.0.0(current2807): SMESH: name of submesh and group ).
authormzn <mzn@opencascade.com>
Thu, 28 Jul 2005 11:03:00 +0000 (11:03 +0000)
committermzn <mzn@opencascade.com>
Thu, 28 Jul 2005 11:03:00 +0000 (11:03 +0000)
src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx

index a773c49ac47daf45295a070b7a8141fd1ff57e47..71a953d18c15ba02042468ef68525f0f5d0aee58 100755 (executable)
@@ -404,7 +404,9 @@ void SMESHGUI_MultiEditDlg::onSelectionDone()
     QLineEdit* aNameEdit = mySubmeshChk->isChecked() ? mySubmesh : myGroup;
     if (nbSel == 1) {
       Handle(SALOME_InteractiveObject) anIO = aList.First();
-      anIO.IsNull() ? aNameEdit->clear() : aNameEdit->setText(anIO->getName());
+      QString aName = "";
+      SMESH::GetNameOfSelectedIObjects(mySelectionMgr, aName);
+      anIO.IsNull() ? aNameEdit->clear() : aNameEdit->setText(aName);
 
       if (mySubmeshChk->isChecked()) {
         SMESH::SMESH_subMesh_var aSubMesh =