From 7b5176ec4d66e7ff5d89e777c56aba87126c5090 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 24 May 2013 11:49:50 +0000 Subject: [PATCH] 0022172: [CEA 790] create the groups corresponding to domains Prepend "Warning" to error description with code==COMPERR_WARNING --- src/SMESHGUI/SMESHGUI_ComputeDlg.cxx | 3 ++- src/SMESHGUI/SMESH_msg_en.ts | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.2