]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fix for PAL12866 : EDF213 SUPERV Error essages at execution time of graphs are not...
authormkr <mkr@opencascade.com>
Wed, 5 Jul 2006 08:28:42 +0000 (08:28 +0000)
committermkr <mkr@opencascade.com>
Wed, 5 Jul 2006 08:28:42 +0000 (08:28 +0000)
src/SUPERVGUI/SUPERVGUI_Main.cxx

index b6fd64f03bf55ee02a517600a4d85dd58396553b..6a9416d9c5d6262931bdcd6ec210ea72f6284df9 100644 (file)
@@ -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") );