]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Do not start create operation if the feature is not created.
authornds <natalia.donis@opencascade.com>
Mon, 2 Mar 2015 11:27:52 +0000 (14:27 +0300)
committernds <natalia.donis@opencascade.com>
Mon, 2 Mar 2015 11:27:52 +0000 (14:27 +0300)
src/ModuleBase/ModuleBase_Operation.cpp

index f1a0ec715fda12caeed93c972ae246d6de78333b..63a3e1e6af1baac05b0ef81fad8a93d1fe11cbc1 100644 (file)
@@ -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;
     }
   }