From 3e5ba4fd987c80387ec4a2f76bdf91ade03bd33b Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 31 Dec 2012 07:49:57 -0800 Subject: [PATCH] Catch wxStrings in OnInit as there's still a few things that throw them --- aegisub/src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aegisub/src/main.cpp b/aegisub/src/main.cpp index 263fab0bb..a2860bfcc 100644 --- a/aegisub/src/main.cpp +++ b/aegisub/src/main.cpp @@ -269,6 +269,10 @@ bool AegisubApp::OnInit() { wxMessageBox(err,"Fatal error while initializing"); return false; } + catch (wxString const& err) { + wxMessageBox(err, "Fatal error while initializing"); + return false; + } catch (agi::Exception const& e) { wxMessageBox(to_wx(e.GetMessage()),"Fatal error while initializing"); return false;