]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0022172: [CEA 790] create the groups corresponding to domains
authoreap <eap@opencascade.com>
Fri, 24 May 2013 11:49:50 +0000 (11:49 +0000)
committereap <eap@opencascade.com>
Fri, 24 May 2013 11:49:50 +0000 (11:49 +0000)
Prepend "Warning" to error description with code==COMPERR_WARNING

src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
src/SMESHGUI/SMESH_msg_en.ts

index 2d236261798dd734b4cf79ad13ea39322fca0fcc..be3fc2f18660e1633254a0ad6d7af06d359f2b1b 100644 (file)
@@ -356,7 +356,8 @@ namespace SMESH
         text = QObject::tr("COMPERR_ALGO_FAILED");
       break;
     case SMESH::COMPERR_WARNING:
-      return comment ? QString(comment) : QObject::tr("COMPERR_UNKNOWN");
+      text = QObject::tr( (comment && strlen(comment)) ? "COMPERR_WARNING" : "COMPERR_UNKNOWN");
+      break;
     default:
       text = QString("#%1").arg( -errCode );
     }
index 2dd8eacf40945aff796969bc5ed318fd25f27221..c10c3bad0d066a6b6df8cd4ea16371104255f900 100644 (file)
         <source>COMPERR_STD_EXCEPTION</source>
         <translation>std::exception</translation>
     </message>
+    <message>
+        <source>COMPERR_WARNING</source>
+        <translation>Warning</translation>
+    </message>
     <message>
         <source>COMPERR_UNKNOWN</source>
         <translation>Unknown error</translation>