From 8661d2c967789409e8db8df5d337100c482e54e3 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 6 Dec 2017 15:14:47 +0300 Subject: [PATCH] Make Name of result the same as for feature --- src/ModuleBase/ModuleBase_WidgetNameEdit.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ModuleBase/ModuleBase_WidgetNameEdit.cpp b/src/ModuleBase/ModuleBase_WidgetNameEdit.cpp index e97666f3d..9261f6f27 100644 --- a/src/ModuleBase/ModuleBase_WidgetNameEdit.cpp +++ b/src/ModuleBase/ModuleBase_WidgetNameEdit.cpp @@ -18,7 +18,9 @@ // email : webmaster.salome@opencascade.com // -#include +#include "ModuleBase_WidgetNameEdit.h" + +#include #include @@ -28,7 +30,11 @@ bool ModuleBase_WidgetNameEdit::storeValueCustom() return false; QString aValue = myLineEdit->text(); - myFeature->data()->setName(aValue.toStdString()); + std::string aName = aValue.toStdString(); + myFeature->data()->setName(aName); + ResultPtr aRes = myFeature->firstResult(); + if (aRes.get()) + aRes->data()->setName(aName); updateObject(myFeature); return true; } -- 2.39.2