]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make Name of result the same as for feature Dev_GroupsRevision
authorvsv <vsv@opencascade.com>
Wed, 6 Dec 2017 12:14:47 +0000 (15:14 +0300)
committervsv <vsv@opencascade.com>
Wed, 6 Dec 2017 12:14:47 +0000 (15:14 +0300)
src/ModuleBase/ModuleBase_WidgetNameEdit.cpp

index e97666f3d8e8177e455c9fa0e55bf32b1afaaa0c..9261f6f27868c49c964655caf44f15c5440bd11f 100644 (file)
@@ -18,7 +18,9 @@
 // email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
 //
 
-#include <ModuleBase_WidgetNameEdit.h>
+#include "ModuleBase_WidgetNameEdit.h"
+
+#include <ModelAPI_Result.h>
 
 #include <QLineEdit>
 
@@ -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;
 }