1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-17 00:20:06 +02:00

Fix for bug #804

But, I did leave in the disabling/enabling of the 
transcription toolbar play button when recording.
Thought that was a good idea.
This commit is contained in:
lllucius 2014-12-22 09:29:14 +00:00
parent 2c6401b564
commit 7108b71f5d

View File

@ -391,23 +391,13 @@ void ControlToolBar::EnableDisableButtons()
void ControlToolBar::SetPlay(bool down, bool looped, bool cutPreview) void ControlToolBar::SetPlay(bool down, bool looped, bool cutPreview)
{ {
AudacityProject *p = GetActiveProject(); AudacityProject *p = GetActiveProject();
TranscriptionToolBar *const pttb =
p ? p->GetTranscriptionToolBar(): 0;
if (down) { if (down) {
mPlay->SetAlternateIdx(cutPreview ? 2 : looped ? 1 : 0); mPlay->SetAlternateIdx(cutPreview ? 2 : looped ? 1 : 0);
mPlay->PushDown(); mPlay->PushDown();
if (pttb)
// This disables cursor changes for modifier keys
// in the other play button too
pttb->SetPlaying(true, looped, cutPreview);
} }
else { else {
mPlay->PopUp(); mPlay->PopUp();
mPlay->SetAlternateIdx(0); mPlay->SetAlternateIdx(0);
if (pttb)
// This reenables cursor changes for modifier keys
// in the other play button too
pttb->SetPlaying(false, looped, cutPreview);
} }
EnableDisableButtons(); EnableDisableButtons();
} }