From 92c1527ae5f319f1c9f90835cb822c2d2849b8ad Mon Sep 17 00:00:00 2001 From: mkr Date: Wed, 1 Feb 2006 09:46:50 +0000 Subject: [PATCH] Fix for IPAL11471 : To correct "Error"(Dataflow not executable:) message. --- src/SUPERVGUI/SUPERVGUI_Main.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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")); -- 2.39.2