mirror of https://github.com/odrling/Aegisub
When disabling karaoke mode during splitting, cancel the split instead of committing it.
Originally committed to SVN as r1342.
This commit is contained in:
parent
9fafcb6b81
commit
66fa8be021
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue