From 1be017150558900cd2e7f072de024872dae1b5d8 Mon Sep 17 00:00:00 2001 From: mkr Date: Tue, 11 Jul 2006 13:32:42 +0000 Subject: [PATCH] Fix for bug PAL12902 : Incorrect error reporting. --- src/SUPERVGUI/SUPERVGUI_Main.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SUPERVGUI/SUPERVGUI_Main.cxx b/src/SUPERVGUI/SUPERVGUI_Main.cxx index 6a9416d..d62e781 100644 --- a/src/SUPERVGUI/SUPERVGUI_Main.cxx +++ b/src/SUPERVGUI/SUPERVGUI_Main.cxx @@ -728,9 +728,11 @@ void SUPERVGUI_Main::run( const bool andSuspend ) { myRunTime = QDateTime::currentDateTime(); const bool result = andSuspend ? dataflow->Start() : dataflow->Run(); if ( !result ) { - QMessageBox::warning(SUIT_Session::session()->activeApplication()->desktop(), tr("ERROR"), tr("MSG_DF_BADEXECUTE")); + // PAL12902 + QMessageBox::warning(SUIT_Session::session()->activeApplication()->desktop(), tr("ERROR"), tr("MSG_DF_BADEXECUTE") + QString(" : ") + QString(dataflow->Messages())); if ( dataflow->State() == SUPERV::ErrorState ) { - kill(); + // PAL12902 + if ( !dataflow->IsEditing() ) kill(); } } else { -- 2.39.2