Handle file not found errors when opening linked audio from subtitles

This commit is contained in:
Thomas Goyne 2012-09-21 18:07:30 -07:00
parent ffab39b21f
commit 6943b868da

View file

@ -749,6 +749,10 @@ void FrameMain::OnSubtitlesOpen() {
context->audioController->OpenAudio(curSubsAudio); context->audioController->OpenAudio(curSubsAudio);
} }
catch (agi::UserCancelException const&) { } catch (agi::UserCancelException const&) { }
catch (agi::FileNotAccessibleError const& err) {
config::mru->Remove("Audio", STD_STR(curSubsAudio));
wxMessageBox(lagi_wxString(err.GetMessage()), "Error opening audio", wxOK | wxICON_ERROR | wxCENTER, this);
}
} }
SetDisplayMode(1, 1); SetDisplayMode(1, 1);