mirror of https://github.com/odrling/Aegisub
Don't display an error when the user cancels an export
Originally committed to SVN as r6597.
This commit is contained in:
parent
ae5d6edaed
commit
2036712acb
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue