Salome HOME
Change color for construction/body/group.
[modules/shaper.git] / src / ModuleBase / ModuleBase_Operation.cpp
index bfe58446d370168a50092075ea228460c6ca7c25..6119c42c80fd91df36bb17afca727d12cfeb861f 100644 (file)
@@ -80,16 +80,6 @@ bool ModuleBase_Operation::canBeCommitted() const
   return isValid();
 }
 
-void ModuleBase_Operation::flushUpdated()
-{
-  Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED));
-}
-
-void ModuleBase_Operation::flushCreated()
-{
-  Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_CREATED));
-}
-
 FeaturePtr ModuleBase_Operation::createFeature(const bool theFlushMessage)
 {
   if (myParentFeature.get()) {
@@ -111,7 +101,7 @@ FeaturePtr ModuleBase_Operation::createFeature(const bool theFlushMessage)
   }
 
   if (theFlushMessage)
-    flushCreated();
+    Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_CREATED));
   return myFeature;
 }
 
@@ -147,6 +137,9 @@ std::shared_ptr<ModelAPI_Document> ModuleBase_Operation::document() const
 void ModuleBase_Operation::start()
 {
   QString anId = getDescription()->operationId();
+  if (myIsEditing) {
+      anId = anId.append(EditSuffix());
+  }
   ModelAPI_Session::get()->startOperation(anId.toStdString());
 
   if (!myIsEditing)