From 127f606788a42c9517f8e7eaf730f82dafe76139 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 17 Oct 2018 17:25:03 +0300 Subject: [PATCH] Issue #2684: Make change of color inside of transaction --- src/ModuleBase/ModuleBase_OperationFeature.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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"); -- 2.39.2