From cbbb325735bbcfd282af36ca94946e513af4ec2a Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 9 Nov 2015 16:13:42 +0300 Subject: [PATCH] Disable apply button. --- src/XGUI/XGUI_ErrorMgr.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2