forked from mia/Aegisub
Reenable Start/Cancel buttons in the font collector dialog even if the collection fails.
Originally committed to SVN as r4618.
This commit is contained in:
parent
7c4bf32566
commit
44888bb008
1 changed files with 8 additions and 2 deletions
|
@ -403,8 +403,14 @@ FontsCollectorThread::FontsCollectorThread(AssFile *_subs,wxString _destination,
|
||||||
/// @return
|
/// @return
|
||||||
///
|
///
|
||||||
wxThread::ExitCode FontsCollectorThread::Entry() {
|
wxThread::ExitCode FontsCollectorThread::Entry() {
|
||||||
// Collect
|
try {
|
||||||
Collect();
|
Collect();
|
||||||
|
}
|
||||||
|
catch (...) {
|
||||||
|
collector->Update();
|
||||||
|
if (IsDetached() && TestDestroy()) Delete();
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
|
||||||
// After done, restore status
|
// After done, restore status
|
||||||
collector->Update();
|
collector->Update();
|
||||||
|
|
Loading…
Reference in a new issue