mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-28 22:28:44 +02:00
Bug1691: Make Mute and Solo shortcuts for focused track work for Midi
This commit is contained in:
parent
1faa234b9e
commit
f2deb1cc43
@ -3824,7 +3824,7 @@ void AudacityProject::OnTrackMute()
|
||||
Track *t = NULL;
|
||||
if (!t) {
|
||||
t = mTrackPanel->GetFocusedTrack();
|
||||
if (!t || (t->GetKind() != Track::Wave))
|
||||
if (!dynamic_cast<PlayableTrack*>(t))
|
||||
return;
|
||||
}
|
||||
DoTrackMute(t, false);
|
||||
@ -3836,7 +3836,7 @@ void AudacityProject::OnTrackSolo()
|
||||
if (!t)
|
||||
{
|
||||
t = mTrackPanel->GetFocusedTrack();
|
||||
if (!t || (t->GetKind() != Track::Wave))
|
||||
if (!dynamic_cast<PlayableTrack*>(t))
|
||||
return;
|
||||
}
|
||||
DoTrackSolo(t, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user