From c9982c4813a163ff78891f4d5f73786e738ccfa0 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 5 Mar 2014 21:49:24 -0500 Subject: [PATCH] MGR: Only dump a crash report if wxUSE_DEBUGREPORT is defined in wxWidgets. --- clientgui/BOINCGUIApp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 + }