From: vsv Date: Wed, 17 Oct 2018 14:25:03 +0000 (+0300) Subject: Issue #2684: Make change of color inside of transaction X-Git-Tag: V9_2_0a2~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=127f606788a42c9517f8e7eaf730f82dafe76139;p=modules%2Fshaper.git Issue #2684: Make change of color inside of transaction --- diff --git a/src/ModuleBase/ModuleBase_OperationFeature.cpp b/src/ModuleBase/ModuleBase_OperationFeature.cpp index 04edf7957..5ec2646d2 100755 --- a/src/ModuleBase/ModuleBase_OperationFeature.cpp +++ b/src/ModuleBase/ModuleBase_OperationFeature.cpp @@ -352,16 +352,17 @@ bool ModuleBase_OperationFeature::commit() myFeature->setStable(true); - SessionPtr aMgr = ModelAPI_Session::get(); - /// Set current feature and remeber old current feature - commitOperation(); - aMgr->finishOperation(); stopOperation(); emit stopped(); emit committed(); + // finishOperation has to be after commited because in signal commited + // there is a modification of attribures (color) + SessionPtr aMgr = ModelAPI_Session::get(); + aMgr->finishOperation(); + afterCommitOperation(); #ifdef DEBUG_OPERATION_START qDebug("ModuleBase_OperationFeature::commit -- end");