From 9cf26953dec32dba1af3a488f4487dc56aac32d8 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 2 Mar 2015 14:27:52 +0300 Subject: [PATCH] Do not start create operation if the feature is not created. --- src/ModuleBase/ModuleBase_Operation.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } } -- 2.39.2