]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Call show method of the error dialog in it's thread. Fixes #79
authorsbh <sergey.belash@opencascade.com>
Thu, 29 May 2014 05:55:12 +0000 (09:55 +0400)
committersbh <sergey.belash@opencascade.com>
Thu, 29 May 2014 05:55:12 +0000 (09:55 +0400)
src/XGUI/XGUI_ErrorDialog.cpp
src/XGUI/XGUI_Workshop.cpp

index 5a8258dc09c91bffa7a4d1c29f4ed3d6cad430f6..c3608f606bc060cb83bb0b2c011264d871dd7d18 100644 (file)
@@ -56,6 +56,11 @@ void XGUI_ErrorDialog::addError(const QString& theError)
 {
   myErrors.append(theError);
   refresh();
+  if(!isVisible()) {
+    show();
+    raise();
+    activateWindow();
+  }
 }
 
 void XGUI_ErrorDialog::removeError(const QString& theError)
@@ -63,4 +68,3 @@ void XGUI_ErrorDialog::removeError(const QString& theError)
   myErrors.removeAll(theError);
   refresh();
 }
-
index 1a5d25095749729ae9f06d69327ec457fb867a26..50eee3179e292eb2ae277d64af2a40a5a261aa2e 100644 (file)
@@ -275,9 +275,6 @@ void XGUI_Workshop::processEvent(const Events_Message* theMessage)
   const Events_Error* anAppError = dynamic_cast<const Events_Error*>(theMessage);
   if (anAppError) {
     emit errorOccurred(QString::fromLatin1(anAppError->description()));
-    myErrorDlg->show();
-    myErrorDlg->raise();
-    myErrorDlg->activateWindow();
   }
 
 }