-//******************************************************
-void XGUI_Workshop::updateCompositeActionState()
-{
- // in order to apply is enabled only if there are modifications in the model
- // e.g. sketch can be applyed only if at least one nested element create is finished
- bool aCanUndo = ModelAPI_Session::get()->canUndo();
- bool aParentValid = operationMgr()->isParentOperationValid();
- bool aCurrentValid = operationMgr()->currentOperation() &&
- operationMgr()->currentOperation()->isValid();
-
- QAction* aAcceptAllAct = myActionsMgr->operationStateAction(XGUI_ActionsMgr::AcceptAll);
- aAcceptAllAct->setEnabled(aParentValid && (aCanUndo || aCurrentValid));
-}
-