From: nds Date: Mon, 9 Nov 2015 13:13:42 +0000 (+0300) Subject: Disable apply button. X-Git-Tag: V_2.0.0_alfa1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cbbb325735bbcfd282af36ca94946e513af4ec2a;p=modules%2Fshaper.git Disable apply button. --- diff --git a/src/XGUI/XGUI_ErrorMgr.cpp b/src/XGUI/XGUI_ErrorMgr.cpp index 97a163665..4da32c077 100644 --- a/src/XGUI/XGUI_ErrorMgr.cpp +++ b/src/XGUI/XGUI_ErrorMgr.cpp @@ -107,7 +107,7 @@ void XGUI_ErrorMgr::updateActionState(QAction* theAction, const FeaturePtr& theF QString anError = myWorkshop->module()->getFeatureError(theFeature); bool anEnabled = anError.isEmpty(); - bool isActionEnabled = theAction->data() != INVALID_VALUE; + /*bool isActionEnabled = theAction->data() != INVALID_VALUE; if (anEnabled != isActionEnabled) { // update enable state of the button theAction->setIcon(anEnabled ? QIcon(":pictures/button_ok.png"): QIcon(":pictures/button_ok_error.png")); @@ -115,7 +115,8 @@ void XGUI_ErrorMgr::updateActionState(QAction* theAction, const FeaturePtr& theF theAction->setData(""); else theAction->setData(INVALID_VALUE); - } + }*/ + theAction->setEnabled(anEnabled); // some operations have no property panel, so it is important to check that it is not null if (myPropertyPanel) { // update controls error information