From a3201178a9c0a5433631ba81f0545d110bf19afa Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 10 Nov 2012 18:00:30 -0800 Subject: [PATCH] Handle errors which occur in the progress dialog worker thread --- aegisub/src/dialog_progress.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aegisub/src/dialog_progress.cpp b/aegisub/src/dialog_progress.cpp index 649e92c36..a9655b45b 100644 --- a/aegisub/src/dialog_progress.cpp +++ b/aegisub/src/dialog_progress.cpp @@ -111,7 +111,12 @@ public: } wxThread::ExitCode Entry() { - task(ps); + try { + task(ps); + } + catch (agi::Exception const& e) { + ps->Log(e.GetChainedMessage()); + } wxQueueEvent(dialog, new wxThreadEvent(EVT_COMPLETE)); return 0; }