mirror of https://github.com/odrling/Aegisub
Handle errors which occur in the progress dialog worker thread
This commit is contained in:
parent
ed43623743
commit
a51b3d8d7f
|
@ -109,7 +109,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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue