forked from mia/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
1 changed files with 2 additions and 0 deletions
|
@ -154,6 +154,8 @@ void DialogExport::OnProcess(wxCommandEvent &) {
|
||||||
c->ass->SetScriptInfo("Export Encoding", charset_list->GetStringSelection());
|
c->ass->SetScriptInfo("Export Encoding", charset_list->GetStringSelection());
|
||||||
exporter->Export(filename, charset_list->GetStringSelection(), this);
|
exporter->Export(filename, charset_list->GetStringSelection(), this);
|
||||||
}
|
}
|
||||||
|
catch (agi::UserCancelException const&) {
|
||||||
|
}
|
||||||
catch (const char *error) {
|
catch (const char *error) {
|
||||||
wxMessageBox(error, "Error exporting subtitles", wxOK | wxICON_ERROR, this);
|
wxMessageBox(error, "Error exporting subtitles", wxOK | wxICON_ERROR, this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue