]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fix for IPAL11471 : To correct "Error"(Dataflow not executable:) message.
authormkr <mkr@opencascade.com>
Wed, 1 Feb 2006 09:46:50 +0000 (09:46 +0000)
committermkr <mkr@opencascade.com>
Wed, 1 Feb 2006 09:46:50 +0000 (09:46 +0000)
src/SUPERVGUI/SUPERVGUI_Main.cxx

index 2454c7555818cd45ffb36aa07e6d6587e6273e64..cdce9ffc655eb9b41dedd92fc6818c8b48bf636a 100644 (file)
@@ -599,7 +599,11 @@ void SUPERVGUI_Main::run( const bool andSuspend ) {
       QMessageBox::warning(SUIT_Session::session()->activeApplication()->desktop(), tr("ERROR"), tr("MSG_DF_NOTVALID") + QString(" : ") + QString(dataflow->Messages()));
     } 
     else if (!dataflow->IsExecutable()) {
-      QMessageBox::warning(SUIT_Session::session()->activeApplication()->desktop(), tr("ERROR"), tr("MSG_DF_NOTEXECUTABLE") + QString(" : ") + QString(dataflow->Messages()));
+      QString aMessage = QString(dataflow->Messages());
+      if ( aMessage.isEmpty() ) // mkr : IPAL11471
+       QMessageBox::warning(SUIT_Session::session()->activeApplication()->desktop(), tr("ERROR"), tr("MSG_DF_NOTEXECUTABLE"));
+      else
+       QMessageBox::warning(SUIT_Session::session()->activeApplication()->desktop(), tr("ERROR"), tr("MSG_DF_NOTEXECUTABLE") + QString(" : ") + aMessage);
     } 
     else if (myCanvasView->isAnyLinkCreating()) {
       QMessageBox::warning(SUIT_Session::session()->activeApplication()->desktop(), tr("ERROR"), tr("MSG_CRL_NOTCOMPLETE"));