X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_OperationMgr.cpp;h=a8f68277b5aa2266d32b6cb4f4d6c4b33730a9d8;hb=be7d83df0061448606f62fcb370f59e2617557d1;hp=69cd046fbb145311c3d752112ac5049cc5ec4c08;hpb=3874b57fe5aba25ff5aee2a07654fc23c1ee8eb0;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_OperationMgr.cpp b/src/XGUI/XGUI_OperationMgr.cpp index 69cd046fb..a8f68277b 100644 --- a/src/XGUI/XGUI_OperationMgr.cpp +++ b/src/XGUI/XGUI_OperationMgr.cpp @@ -13,7 +13,7 @@ #include XGUI_OperationMgr::XGUI_OperationMgr(QObject* theParent) - : QObject(theParent) + : QObject(theParent), myIsValidationLock(false) { } @@ -102,7 +102,7 @@ bool XGUI_OperationMgr::startOperation(ModuleBase_Operation* theOperation) connect(theOperation, SIGNAL(started()), SLOT(onOperationStarted())); connect(theOperation, SIGNAL(aborted()), SLOT(onOperationAborted())); - connect(theOperation, SIGNAL(committed()), SLOT(onOperationComitted())); + connect(theOperation, SIGNAL(committed()), SLOT(onOperationCommitted())); connect(theOperation, SIGNAL(stopped()), SLOT(onOperationStopped())); connect(theOperation, SIGNAL(resumed()), SLOT(onOperationResumed())); connect(theOperation, SIGNAL(activatedByPreselection()), @@ -139,7 +139,7 @@ void XGUI_OperationMgr::onValidateOperation() if (!hasOperation()) return; ModuleBase_Operation* anOperation = currentOperation(); - if(anOperation) { + if(anOperation && (!myIsValidationLock)) { bool isValid = anOperation->isValid(); emit operationValidated(isValid); } @@ -219,10 +219,10 @@ void XGUI_OperationMgr::onOperationAborted() emit operationAborted(aSenderOperation); } -void XGUI_OperationMgr::onOperationComitted() +void XGUI_OperationMgr::onOperationCommitted() { ModuleBase_Operation* aSenderOperation = dynamic_cast(sender()); - emit operationComitted(aSenderOperation); + emit operationCommitted(aSenderOperation); } void XGUI_OperationMgr::onOperationResumed()