From: eap Date: Fri, 24 May 2013 11:49:50 +0000 (+0000) Subject: 0022172: [CEA 790] create the groups corresponding to domains X-Git-Tag: V7_3_0a1~410 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=7b5176ec4d66e7ff5d89e777c56aba87126c5090 0022172: [CEA 790] create the groups corresponding to domains Prepend "Warning" to error description with code==COMPERR_WARNING --- diff --git a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx index 2d2362617..be3fc2f18 100644 --- a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx @@ -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 ); } diff --git a/src/SMESHGUI/SMESH_msg_en.ts b/src/SMESHGUI/SMESH_msg_en.ts index 2dd8eacf4..c10c3bad0 100644 --- a/src/SMESHGUI/SMESH_msg_en.ts +++ b/src/SMESHGUI/SMESH_msg_en.ts @@ -123,6 +123,10 @@ COMPERR_STD_EXCEPTION std::exception + + COMPERR_WARNING + Warning + COMPERR_UNKNOWN Unknown error