When disabling karaoke mode during splitting, cancel the split instead of committing it.

Originally committed to SVN as r1342.
This commit is contained in:
Niels Martin Hansen 2007-07-03 18:28:08 +00:00
parent 9fafcb6b81
commit 66fa8be021
1 changed files with 1 additions and 2 deletions

View File

@ -515,8 +515,7 @@ void AudioBox::OnKaraoke(wxCommandEvent &event) {
if (karaokeMode) {
wxLogDebug(_T("AudioBox::OnKaraoke: karaoke enabled, disabling"));
if (audioKaraoke->splitting) {
wxLogDebug(_T("AudioBox::OnKaraoke: was splitting, committing"));
audioKaraoke->Commit(); // FIXME: the grid and editbox don't seem to get updated by this
audioKaraoke->EndSplit(false);
}
karaokeMode = false;
audioKaraoke->enabled = false;