From: eap Date: Wed, 18 Apr 2007 07:03:07 +0000 (+0000) Subject: PAL13330 (When mesh generation does not success, trace where) X-Git-Tag: V3_2_6~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=736455590fc04102a01f887270c1895020b5aeb5;p=modules%2Fsmesh.git PAL13330 (When mesh generation does not success, trace where) avoid exception at attempt to compute not a mesh object --- diff --git a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx index 873e4c6d3..3d9a35d8b 100644 --- a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx @@ -828,6 +828,14 @@ void SMESHGUI_ComputeOp::startOperation() } } } + else { + SUIT_MessageBox::warn1(desktop(), + tr("SMESH_WRN_WARNING"), + tr("SMESH_WRN_NO_AVAILABLE_DATA"), + tr("SMESH_BUT_OK")); + onCancel(); + return; + } myDlg->setCaption(tr( computeFailed ? "SMESH_WRN_COMPUTE_FAILED" : "SMESH_COMPUTE_SUCCEED"));