]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fix for bug PAL12902 : Incorrect error reporting.
authormkr <mkr@opencascade.com>
Tue, 11 Jul 2006 13:32:42 +0000 (13:32 +0000)
committermkr <mkr@opencascade.com>
Tue, 11 Jul 2006 13:32:42 +0000 (13:32 +0000)
src/SUPERVGUI/SUPERVGUI_Main.cxx

index 6a9416d9c5d6262931bdcd6ec210ea72f6284df9..d62e781806555044a785e88343ffe8fcc8ea6b28 100644 (file)
@@ -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 {