forked from mia/Aegisub
Prevent audio display from continually stealing focus when navigating subtitle lines and karaoke mode is enabled. This should fix #425.
Originally committed to SVN as r1493.
This commit is contained in:
parent
f9bfa1fc43
commit
762aa6287f
1 changed files with 4 additions and 1 deletions
|
@ -543,7 +543,10 @@ void AudioBox::SetKaraokeButtons() {
|
||||||
join = audioKaraoke->enabled && (audioKaraoke->splitting || audioKaraoke->selectionCount>=2);
|
join = audioKaraoke->enabled && (audioKaraoke->splitting || audioKaraoke->selectionCount>=2);
|
||||||
split = audioKaraoke->enabled;
|
split = audioKaraoke->enabled;
|
||||||
|
|
||||||
audioDisplay->SetFocus();
|
// If we set focus here, the audio display will continually steal the focus
|
||||||
|
// when navigating via the grid and karaoke is enabled. So don't.
|
||||||
|
//audioDisplay->SetFocus();
|
||||||
|
|
||||||
JoinButton->Enable(join);
|
JoinButton->Enable(join);
|
||||||
SplitButton->Enable(split);
|
SplitButton->Enable(split);
|
||||||
if (audioKaraoke->splitting) {
|
if (audioKaraoke->splitting) {
|
||||||
|
|
Loading…
Reference in a new issue