X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModuleBase%2FModuleBase_Operation.cpp;h=6119c42c80fd91df36bb17afca727d12cfeb861f;hb=247fc0bd6c6e04ce1f7a6e67f8d3c80ce17acab0;hp=bfe58446d370168a50092075ea228460c6ca7c25;hpb=030b6397f0ab0519ed4457133f3883768b4faf33;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_Operation.cpp b/src/ModuleBase/ModuleBase_Operation.cpp index bfe58446d..6119c42c8 100644 --- a/src/ModuleBase/ModuleBase_Operation.cpp +++ b/src/ModuleBase/ModuleBase_Operation.cpp @@ -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 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)