]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
[bos #39969][CEA] Mesh name change wehn submesh is edited. cce/39969 25/head 26/head
authorcesarconopoima <cesar.conopoima@opencascade.com>
Mon, 4 Dec 2023 11:53:16 +0000 (11:53 +0000)
committercesarconopoima <cesar.conopoima@opencascade.com>
Mon, 4 Dec 2023 11:53:16 +0000 (11:53 +0000)
src/SMESHGUI/SMESHGUI_MeshOp.cxx

index 95b51a474ac0d372bf6d7610f553a7838f08b165..11e0bb3b511d0451eb9c2a39bbb878112e847131 100644 (file)
@@ -2631,7 +2631,7 @@ bool SMESHGUI_MeshOp::editMeshOrSubMesh( QString& theMess, QStringList& theEntry
 
   _PTR(SObject) aMeshSO = SMESH::FindSObject(aMesh.in());
   if (aMeshSO) {
-    SMESH::SetName(aMeshSO, myDlg->objectText(SMESHGUI_MeshDlg::Obj));
+    if (aSubMeshVar->_is_nil()) SMESH::SetName(aMeshSO, myDlg->objectText(SMESHGUI_MeshDlg::Obj));
     theEntryList.append(aMeshSO->GetID().c_str());
   }