From: nds Date: Mon, 2 Mar 2015 11:27:52 +0000 (+0300) Subject: Do not start create operation if the feature is not created. X-Git-Tag: V_1.0.2~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9cf26953dec32dba1af3a488f4487dc56aac32d8;hp=6f84fd29d85b783864cdbb3ac9fdd6a3ad3cbb7c;p=modules%2Fshaper.git Do not start create operation if the feature is not created. --- diff --git a/src/ModuleBase/ModuleBase_Operation.cpp b/src/ModuleBase/ModuleBase_Operation.cpp index f1a0ec715..63a3e1e6a 100644 --- a/src/ModuleBase/ModuleBase_Operation.cpp +++ b/src/ModuleBase/ModuleBase_Operation.cpp @@ -152,7 +152,10 @@ void ModuleBase_Operation::start() FeaturePtr aFeature = createFeature(); // if the feature is not created, there is no sense to start the operation if (aFeature.get() == NULL) { - ModelAPI_Session::get()->abortOperation(); + // it is necessary to abor the operation in the session and emit the aborted signal + // in order to update commands status in the workshop, to be exact the feature action + // to be unchecked + abort(); return; } }