mirror of https://github.com/odrling/Aegisub
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:
parent
bce29f5a9a
commit
e6d86a1af4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue