]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Signal/Slot connection warning eliminated
authorsbh <sergey.belash@opencascade.com>
Fri, 7 Nov 2014 13:09:28 +0000 (16:09 +0300)
committersbh <sergey.belash@opencascade.com>
Fri, 7 Nov 2014 13:09:28 +0000 (16:09 +0300)
src/XGUI/XGUI_Workshop.cpp

index cf38bd9e6975d4ebf6d9fc40e00eb9444c011a60..83dc099fc44d10a7db66717b0d887fc6198e7df9 100644 (file)
@@ -119,9 +119,11 @@ XGUI_Workshop::XGUI_Workshop(XGUI_SalomeConnector* theConnector)
   connect(myOperationMgr, SIGNAL(operationStopped(ModuleBase_Operation*)),
           SLOT(onOperationStopped(ModuleBase_Operation*)));
   connect(myMainWindow, SIGNAL(exitKeySequence()), SLOT(onExit()));
-  connect(myOperationMgr, SIGNAL(operationStarted()), myActionsMgr, SLOT(update()));
-  connect(myOperationMgr, SIGNAL(operationStopped(ModuleBase_Operation*)), myActionsMgr,
-          SLOT(update()));
+  // TODO(sbh): It seems that application works properly without update on operationStarted
+  connect(myOperationMgr, SIGNAL(operationStarted(ModuleBase_Operation*)),
+          myActionsMgr,   SLOT(update()));
+  connect(myOperationMgr, SIGNAL(operationStopped(ModuleBase_Operation*)),
+          myActionsMgr,   SLOT(update()));
   connect(this, SIGNAL(errorOccurred(const QString&)), myErrorDlg, SLOT(addError(const QString&)));
 }