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:
Thomas Goyne 2011-08-31 04:17:24 +00:00
parent 7155ace1d9
commit 02d4ee0cec
1 changed files with 3 additions and 0 deletions

View File

@ -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);