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

View file

@ -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();