forked from mia/Aegisub
Handle file not found errors when opening linked audio from subtitles
This commit is contained in:
parent
ffab39b21f
commit
6943b868da
1 changed files with 4 additions and 0 deletions
|
@ -749,6 +749,10 @@ void FrameMain::OnSubtitlesOpen() {
|
|||
context->audioController->OpenAudio(curSubsAudio);
|
||||
}
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue