PAL13330 (When mesh generation does not success, trace where)

avoid exception at attempt to compute not a mesh object
This commit is contained in:
eap 2007-04-18 07:03:07 +00:00
parent ca74cc3727
commit 736455590f

View File

@ -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"));