mirror of https://github.com/odrling/Aegisub
Swallow cancel exceptions thrown from opening audio from the script so that unrelated things aren't canceled
Originally committed to SVN as r6403.
This commit is contained in:
parent
f774f21903
commit
fc96f1bd28
|
@ -660,11 +660,14 @@ void FrameMain::OnSubtitlesOpen() {
|
|||
|
||||
// Audio
|
||||
if (curSubsAudio != context->audioController->GetAudioURL()) {
|
||||
try {
|
||||
if (!curSubsAudio)
|
||||
context->audioController->CloseAudio();
|
||||
else
|
||||
context->audioController->OpenAudio(curSubsAudio);
|
||||
}
|
||||
catch (agi::UserCancelException const&) { }
|
||||
}
|
||||
}
|
||||
|
||||
// Display
|
||||
|
|
Loading…
Reference in New Issue