mirror of https://github.com/odrling/Aegisub
Revert when the dialogue timing controller is created to avoid broken behavior when leaving karaoke mode
Originally committed to SVN as r5576.
This commit is contained in:
parent
7155ace1d9
commit
02d4ee0cec
|
@ -260,6 +260,9 @@ AudioTimingControllerDialogue::AudioTimingControllerDialogue(AudioController *au
|
|||
|
||||
AudioMarkerDialogueTiming::InitPair(&markers[0], &markers[1]);
|
||||
|
||||
if (audio_controller->IsAudioOpen())
|
||||
Revert();
|
||||
|
||||
selection_controller->AddSelectionListener(this);
|
||||
commit_slot = ass->AddCommitListener(&AudioTimingControllerDialogue::OnFileChanged, this);
|
||||
audio_open_slot = audio_controller->AddAudioOpenListener(&AudioTimingControllerDialogue::Revert, this);
|
||||
|
|
Loading…
Reference in New Issue