diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 5b036ea..abe6626 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -29,6 +29,16 @@ class TrackerApp : public wxApp { | |||
29 | frame->Show(true); | 29 | frame->Show(true); |
30 | return true; | 30 | return true; |
31 | } | 31 | } |
32 | |||
33 | bool OnExceptionInMainLoop() override { | ||
34 | try { | ||
35 | throw; | ||
36 | } catch (const std::exception& ex) { | ||
37 | wxLogError(ex.what()); | ||
38 | } | ||
39 | |||
40 | return false; | ||
41 | } | ||
32 | }; | 42 | }; |
33 | 43 | ||
34 | wxIMPLEMENT_APP(TrackerApp); | 44 | wxIMPLEMENT_APP(TrackerApp); |