Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f84fd2
)
Do not start create operation if the feature is not created.
author
nds
<natalia.donis@opencascade.com>
Mon, 2 Mar 2015 11:27:52 +0000
(14:27 +0300)
committer
nds
<natalia.donis@opencascade.com>
Mon, 2 Mar 2015 11:27:52 +0000
(14:27 +0300)
src/ModuleBase/ModuleBase_Operation.cpp
patch
|
blob
|
history
diff --git
a/src/ModuleBase/ModuleBase_Operation.cpp
b/src/ModuleBase/ModuleBase_Operation.cpp
index f1a0ec715fda12caeed93c972ae246d6de78333b..63a3e1e6af1baac05b0ef81fad8a93d1fe11cbc1 100644
(file)
--- 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;
}
}