diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-09-09 00:27:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-09-09 00:27:23 +0100 |
| commit | 6ca34bc1ef59dd206379f35eb940e607a59c9804 (patch) | |
| tree | 318cf286f7e0aff5b4d0990007711d5dff6da9e5 /src/wx/hints_dialog.cc | |
| parent | c536ea4b470fffadcc491b2b9885e027efa2ec5c (diff) | |
Handle errors a little better when scanning for closed captions (in hints).
Diffstat (limited to 'src/wx/hints_dialog.cc')
| -rw-r--r-- | src/wx/hints_dialog.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wx/hints_dialog.cc b/src/wx/hints_dialog.cc index f8d03626f..cb0de450a 100644 --- a/src/wx/hints_dialog.cc +++ b/src/wx/hints_dialog.cc @@ -163,6 +163,12 @@ HintsDialog::pulse () void HintsDialog::finished () { + try { + _hints->rethrow (); + } catch (std::exception& e) { + error_dialog (this, wxString::Format(_("A problem occurred when looking for hints (%s)"), std_to_wx(e.what()))); + } + _finished = true; update (); _gauge->Hide (); |
