From: nds Date: Thu, 5 Nov 2015 10:19:08 +0000 (+0300) Subject: Revolution Cut: it should not be a warning about abort circle sketch operation when... X-Git-Tag: V_2.0.0_alfa1~6^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b8ead3de2d0a8d4f31c303bb0591efaf167ce74e;p=modules%2Fshaper.git Revolution Cut: it should not be a warning about abort circle sketch operation when the line sketch operation is started(by click on the line action in the tool bar) --- diff --git a/src/XGUI/XGUI_OperationMgr.cpp b/src/XGUI/XGUI_OperationMgr.cpp index ace0a2749..4cf2001e1 100644 --- a/src/XGUI/XGUI_OperationMgr.cpp +++ b/src/XGUI/XGUI_OperationMgr.cpp @@ -294,7 +294,7 @@ bool XGUI_OperationMgr::isGrantedOperation(const QString& theId) QListIterator anIt(myOperations); anIt.toBack(); ModuleBase_Operation* aPreviousOperation = 0; - while (anIt.hasPrevious()) { + while (anIt.hasPrevious() && !isGranted) { ModuleBase_Operation* anOp = anIt.previous(); if (anOp) isGranted = anOp->isGranted(theId);