From: vsv Date: Fri, 6 Nov 2015 15:55:42 +0000 (+0300) Subject: Disable button of active operation. X-Git-Tag: V_2.0.0_alfa1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=57626695d1a88caac8e7940758a8ba93a8bcc9c2;p=modules%2Fshaper.git Disable button of active operation. --- diff --git a/src/XGUI/XGUI_ActionsMgr.cpp b/src/XGUI/XGUI_ActionsMgr.cpp index 968457ffe..b25a6fb75 100644 --- a/src/XGUI/XGUI_ActionsMgr.cpp +++ b/src/XGUI/XGUI_ActionsMgr.cpp @@ -108,8 +108,8 @@ void XGUI_ActionsMgr::update() anActiveFeature = aFOperation->feature(); if(anActiveFeature.get()) { setAllEnabled(false); - QString aFeatureId = QString::fromStdString(anActiveFeature->getKind()); - setActionEnabled(aFeatureId, true); + //QString aFeatureId = QString::fromStdString(anActiveFeature->getKind()); + //setActionEnabled(aFeatureId, true); } setNestedStackEnabled(aFOperation); } else { @@ -306,7 +306,7 @@ void XGUI_ActionsMgr::setNestedStackEnabled(ModuleBase_Operation* theOperation) return; FeaturePtr aFeature = anOperation->feature(); QString aFeatureId = QString::fromStdString(aFeature->getKind()); - setActionEnabled(aFeatureId, true); + //setActionEnabled(aFeatureId, true); setNestedCommandsEnabled(true, aFeatureId); setNestedStackEnabled(myOperationMgr->previousOperation(theOperation));