forked from mia/Aegisub
Handle errors which occur in the progress dialog worker thread
This commit is contained in:
parent
23c750d138
commit
a3201178a9
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue