]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2830: Compilation bug fix
authorvsv <vsv@opencascade.com>
Thu, 10 Jan 2019 10:49:40 +0000 (13:49 +0300)
committervsv <vsv@opencascade.com>
Thu, 10 Jan 2019 10:49:40 +0000 (13:49 +0300)
src/XGUI/XGUI_Workshop.cpp

index 10aab94b060a96a869996563f2318c73c760b4b8..d05c17241753fb01d74bab65f3bac7a7cb9eec37 100755 (executable)
@@ -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<QAction*> 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
 }