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:
Thomas Goyne 2010-06-27 05:05:44 +00:00
parent 7c4bf32566
commit 44888bb008
1 changed files with 8 additions and 2 deletions

View File

@ -403,8 +403,14 @@ FontsCollectorThread::FontsCollectorThread(AssFile *_subs,wxString _destination,
/// @return
///
wxThread::ExitCode FontsCollectorThread::Entry() {
// Collect
Collect();
try {
Collect();
}
catch (...) {
collector->Update();
if (IsDetached() && TestDestroy()) Delete();
throw;
}
// After done, restore status
collector->Update();