From d2cb3e2d6f20bc6b7d1cca13a6b6339a6f582cdb Mon Sep 17 00:00:00 2001 From: cesarconopoima Date: Mon, 4 Dec 2023 11:53:16 +0000 Subject: [PATCH] [bos #39969][CEA] Mesh name change wehn submesh is edited. --- src/SMESHGUI/SMESHGUI_MeshOp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } -- 2.39.2