From 230bd0daacf50ad118fb9f597633df928e0f1587 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 10 Jan 2019 13:49:40 +0300 Subject: [PATCH] Issue #2830: Compilation bug fix --- src/XGUI/XGUI_Workshop.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 10aab94b0..d05c17241 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -2847,7 +2847,7 @@ void XGUI_Workshop::updateAutoComputeState() { SessionPtr aMgr = ModelAPI_Session::get(); bool isComputeBlocked = aMgr->isAutoUpdateBlocked(); -//#ifdef HAVE_SALOME +#ifdef HAVE_SALOME // QAction* aUpdateCmd; // QList aCommands = mySalomeConnector->commandList(); // foreach(QAction* aCmd, aCommands) { @@ -2858,12 +2858,12 @@ void XGUI_Workshop::updateAutoComputeState() // } // aUpdateCmd->setIcon(isComputeBlocked? QIcon(":pictures/autoapply_stop.png") : // QIcon(":pictures/autoapply_start.png")); -//#else +#else AppElements_MainMenu* aMenuBar = myMainWindow->menuObject(); AppElements_Command* aUpdateCmd = aMenuBar->feature("AUTOCOMPUTE_CMD"); aUpdateCmd->button()->setIcon(isComputeBlocked? QIcon(":pictures/autoapply_stop.png") : QIcon(":pictures/autoapply_start.png")); -//#endif +#endif } -- 2.39.2