From 27a1d68ec477b792cb63f45d8e96f1670c178edd Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Tue, 26 Jan 2010 13:18:53 +0000 Subject: [PATCH] Call OnUnhandledException() only when wxWidgets is compiled with exception handling. Originally committed to SVN as r4044. --- aegisub/src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aegisub/src/main.cpp b/aegisub/src/main.cpp index 65dc18e95..086cc085d 100644 --- a/aegisub/src/main.cpp +++ b/aegisub/src/main.cpp @@ -431,7 +431,9 @@ int AegisubApp::OnRun() { file.close(); } +#if wxUSE_EXCEPTIONS OnUnhandledException(); +#endif } ExitMainLoop();