MGR: Only dump a crash report if wxUSE_DEBUGREPORT is defined in wxWidgets.

This commit is contained in:
Rom Walton 2014-03-05 21:49:24 -05:00
parent 1eb4643e15
commit c9982c4813
1 changed files with 6 additions and 0 deletions

View File

@ -568,6 +568,9 @@ void CBOINCGUIApp::OnEndSession(wxCloseEvent& ) {
void CBOINCGUIApp::OnFatalException() {
#ifdef wxUSE_DEBUGREPORT
wxDebugReportCompress* report = new wxDebugReportCompress;
if (report->IsOk()) {
@ -585,6 +588,9 @@ void CBOINCGUIApp::OnFatalException() {
}
delete report;
#endif
}