Salome HOME
Issue #1080 generation of plugin Shaper v1.4 with VisualStudio 2010
[modules/shaper.git] / src / XGUI / XGUI_OperationMgr.cpp
index e0139d8f511cb460a2e64661f4d1ea1f045a00ce..d441258e806a1f7e0a7bea31c2c309d129dca3c6 100644 (file)
@@ -136,9 +136,10 @@ bool XGUI_OperationMgr::startOperation(ModuleBase_Operation* theOperation)
     connect(aFOperation, SIGNAL(activatedByPreselection()),
             SIGNAL(operationActivatedByPreselection()));
 
-  theOperation->start();
-  onValidateOperation();
-  return true;
+  bool isStarted = theOperation->start();
+  if (isStarted)
+    onValidateOperation();
+  return isStarted;
 }
 
 bool XGUI_OperationMgr::abortAllOperations()