X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ErrorMgr.cpp;h=97a163665599dc67817db6f2b04ffd5772dd11cf;hb=57626695d1a88caac8e7940758a8ba93a8bcc9c2;hp=355c8d9a1b5df7882e040fa9d5a119bec19f27fb;hpb=60dfa3359d9982f72d6359fede8520280bfaa6db;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ErrorMgr.cpp b/src/XGUI/XGUI_ErrorMgr.cpp index 355c8d9a1..97a163665 100644 --- a/src/XGUI/XGUI_ErrorMgr.cpp +++ b/src/XGUI/XGUI_ErrorMgr.cpp @@ -59,7 +59,13 @@ void XGUI_ErrorMgr::updateActions(const FeaturePtr& theFeature) QAction* anOkAction = anActionsMgr->operationStateAction(XGUI_ActionsMgr::Accept); updateActionState(anOkAction, theFeature); } - //update AcceptAll action +} + +void XGUI_ErrorMgr::updateAcceptAllAction(const FeaturePtr& theFeature) +{ + QString anError = myWorkshop->module()->getFeatureError(theFeature); + + XGUI_ActionsMgr* anActionsMgr = workshop()->actionsMgr(); if (workshop()->isFeatureOfNested(theFeature)) { QAction* anAcceptAllAction = anActionsMgr->operationStateAction(XGUI_ActionsMgr::AcceptAll, NULL); bool anEnabled = anError.isEmpty();