From: vsv Date: Thu, 10 Jan 2019 10:49:40 +0000 (+0300) Subject: Issue #2830: Compilation bug fix X-Git-Tag: Jan2019~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=230bd0daacf50ad118fb9f597633df928e0f1587;p=modules%2Fshaper.git Issue #2830: Compilation bug fix --- 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 }