Don't remove audio files from the recently used files list when loading is cancelled

Originally committed to SVN as r6354.
This commit is contained in:
Thomas Goyne 2012-01-25 04:59:11 +00:00
parent bce29f5a9a
commit e6d86a1af4

View file

@ -296,6 +296,9 @@ void AudioController::OpenAudio(const wxString &url)
provider = AudioProviderFactory::GetProvider(url);
StandardPaths::SetPathValue("?audio", wxFileName(url).GetPath());
}
catch (agi::UserCancelException const&) {
throw;
}
catch (...) {
config::mru->Remove("Audio", STD_STR(url));
throw;