From 2036712acba5f980a3604ae4f967869122723f2e Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 25 Mar 2012 04:04:48 +0000 Subject: [PATCH] Don't display an error when the user cancels an export Originally committed to SVN as r6597. --- aegisub/src/dialog_export.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aegisub/src/dialog_export.cpp b/aegisub/src/dialog_export.cpp index 8b2140438..fd2ddabb4 100644 --- a/aegisub/src/dialog_export.cpp +++ b/aegisub/src/dialog_export.cpp @@ -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); }