From: cesarconopoima Date: Mon, 4 Dec 2023 11:53:16 +0000 (+0000) Subject: [bos #39969][CEA] Mesh name change wehn submesh is edited. X-Git-Tag: V9_12_0rc1~1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Ftlpr%2F25%2Fhead;p=modules%2Fsmesh.git [bos #39969][CEA] Mesh name change wehn submesh is edited. --- diff --git a/src/SMESHGUI/SMESHGUI_MeshOp.cxx b/src/SMESHGUI/SMESHGUI_MeshOp.cxx index 95b51a474..11e0bb3b5 100644 --- a/src/SMESHGUI/SMESHGUI_MeshOp.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshOp.cxx @@ -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()); }