From: mkr Date: Wed, 1 Feb 2006 09:46:50 +0000 (+0000) Subject: Fix for IPAL11471 : To correct "Error"(Dataflow not executable:) message. X-Git-Tag: mergeto_trunk_07Feb06~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=92c1527ae5f319f1c9f90835cb822c2d2849b8ad;p=modules%2Fsuperv.git Fix for IPAL11471 : To correct "Error"(Dataflow not executable:) message. --- diff --git a/src/SUPERVGUI/SUPERVGUI_Main.cxx b/src/SUPERVGUI/SUPERVGUI_Main.cxx index 2454c75..cdce9ff 100644 --- a/src/SUPERVGUI/SUPERVGUI_Main.cxx +++ b/src/SUPERVGUI/SUPERVGUI_Main.cxx @@ -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"));