From: mkr Date: Tue, 11 Jul 2006 13:32:42 +0000 (+0000) Subject: Fix for bug PAL12902 : Incorrect error reporting. X-Git-Tag: T3_2_1_pre~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1be017150558900cd2e7f072de024872dae1b5d8;p=modules%2Fsuperv.git Fix for bug PAL12902 : Incorrect error reporting. --- 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 {