mirror of https://github.com/odrling/Aegisub
Don't display an error message if the user cancels audio loading
Originally committed to SVN as r5803.
This commit is contained in:
parent
31a3b9aae0
commit
52a2316934
|
@ -102,6 +102,7 @@ struct audio_open : public Command {
|
||||||
OPT_SET("Path/Last/Audio")->SetString(STD_STR(filename));
|
OPT_SET("Path/Last/Audio")->SetString(STD_STR(filename));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (agi::UserCancelException const&) { }
|
||||||
catch (agi::Exception const& e) {
|
catch (agi::Exception const& e) {
|
||||||
wxMessageBox(lagi_wxString(e.GetChainedMessage()), "Error loading file", wxICON_ERROR | wxOK);
|
wxMessageBox(lagi_wxString(e.GetChainedMessage()), "Error loading file", wxICON_ERROR | wxOK);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue