Don't display an error when the user cancels an export

Originally committed to SVN as r6597.
This commit is contained in:
Thomas Goyne 2012-03-25 04:04:48 +00:00
parent ae5d6edaed
commit 2036712acb
1 changed files with 2 additions and 0 deletions

View File

@ -154,6 +154,8 @@ void DialogExport::OnProcess(wxCommandEvent &) {
c->ass->SetScriptInfo("Export Encoding", charset_list->GetStringSelection());
exporter->Export(filename, charset_list->GetStringSelection(), this);
}
catch (agi::UserCancelException const&) {
}
catch (const char *error) {
wxMessageBox(error, "Error exporting subtitles", wxOK | wxICON_ERROR, this);
}