From 336396af2a93b52ca077f1056c08bf3ac9ed18e9 Mon Sep 17 00:00:00 2001 From: mkr Date: Wed, 5 Jul 2006 08:28:42 +0000 Subject: [PATCH] Fix for PAL12866 : EDF213 SUPERV Error essages at execution time of graphs are not displayed by the GUI. --- src/SUPERVGUI/SUPERVGUI_Main.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/SUPERVGUI/SUPERVGUI_Main.cxx b/src/SUPERVGUI/SUPERVGUI_Main.cxx index b6fd64f..6a9416d 100644 --- a/src/SUPERVGUI/SUPERVGUI_Main.cxx +++ b/src/SUPERVGUI/SUPERVGUI_Main.cxx @@ -1614,6 +1614,7 @@ void SUPERVGUI_Thread::main_thread_run(SUPERV_CNode& aNode, SUPERV::GraphEvent& // execution is finished. just set a "finished" message(s) if ( !myIsActive ) { + QString aMess; switch ( myMain->getDataflow()->State() ) { case SUPERV_Editing : myMain->getMessage()->putMessage( myMain->getDataflow()->IsReadOnly()? @@ -1627,6 +1628,14 @@ void SUPERVGUI_Thread::main_thread_run(SUPERV_CNode& aNode, SUPERV::GraphEvent& break; case SUPERV_Error : myMain->getMessage()->putMessage( tr("MSG_GRAPH_ABORTED") ); + // PAL12866 --> + aMess = QString(myMain->getDataflow()->Messages()); + if ( !aMess.isEmpty() ) { + myMain->getMessage()->putMessage( tr("MSG_DF_BADEXECUTE") + QString(" : ") + aMess ); + QMessageBox::warning(SUIT_Session::session()->activeApplication()->desktop(), tr("ERROR"), + tr("MSG_DF_BADEXECUTE") + QString(" : ") + aMess); + } + // PAL12866 <-- break; case SUPERV_Kill: myMain->getMessage()->putMessage( tr("MSG_GRAPH_KILLED") ); -- 2.39.2