diff --git a/clientgui/BOINCGUIApp.cpp b/clientgui/BOINCGUIApp.cpp index d3a41a26eb..4638f2aa12 100644 --- a/clientgui/BOINCGUIApp.cpp +++ b/clientgui/BOINCGUIApp.cpp @@ -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 + }