From: vsv Date: Wed, 6 Dec 2017 12:14:47 +0000 (+0300) Subject: Make Name of result the same as for feature X-Git-Tag: V_2.10.1~22^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8661d2c967789409e8db8df5d337100c482e54e3;p=modules%2Fshaper.git Make Name of result the same as for feature --- 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; }