Don't display an error message if the user cancels audio loading

Originally committed to SVN as r5803.
This commit is contained in:
Thomas Goyne 2011-10-29 04:30:58 +00:00
parent 31a3b9aae0
commit 52a2316934
1 changed files with 1 additions and 0 deletions

View File

@ -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);
} }