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 2d23626..be3fc2f 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 2dd8eac..c10c3ba 100644 (file)
         <translation>std::exception</translation>
     </message>
     <message>
+        <source>COMPERR_WARNING</source>
+        <translation>Warning</translation>
+    </message>
+    <message>
         <source>COMPERR_UNKNOWN</source>
         <translation>Unknown error</translation>
     </message>