mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-05 22:28:57 +02:00
Bug 1624: mute/unmute all commands do not adjust solo buttons
If the solo buttons are set to "simple" then after mute/unmute all, the solo buttons should all be off. This is not the case. Fix: turn the solo buttons off :).
This commit is contained in:
parent
fa62d80a21
commit
c8f58c90af
@ -7414,16 +7414,21 @@ void AudacityProject::OnMuteAllTracks()
|
||||
while (t)
|
||||
{
|
||||
auto pt = dynamic_cast<PlayableTrack *>(t);
|
||||
if (pt)
|
||||
if (pt) {
|
||||
pt->SetMute(true);
|
||||
|
||||
if (IsSoloSimple())
|
||||
pt->SetSolo(false);
|
||||
}
|
||||
t = iter.Next();
|
||||
}
|
||||
|
||||
ModifyState(true);
|
||||
RedrawProject();
|
||||
if (mMixerBoard)
|
||||
if (mMixerBoard) {
|
||||
mMixerBoard->UpdateMute();
|
||||
if (IsSoloSimple())
|
||||
mMixerBoard->UpdateSolo();
|
||||
}
|
||||
}
|
||||
|
||||
void AudacityProject::OnUnMuteAllTracks()
|
||||
@ -7434,15 +7439,21 @@ void AudacityProject::OnUnMuteAllTracks()
|
||||
while (t)
|
||||
{
|
||||
auto pt = dynamic_cast<PlayableTrack *>(t);
|
||||
if (pt)
|
||||
if (pt) {
|
||||
pt->SetMute(false);
|
||||
if (IsSoloSimple())
|
||||
pt->SetSolo(false);
|
||||
}
|
||||
t = iter.Next();
|
||||
}
|
||||
|
||||
ModifyState(true);
|
||||
RedrawProject();
|
||||
if (mMixerBoard)
|
||||
if (mMixerBoard) {
|
||||
mMixerBoard->UpdateMute();
|
||||
if (IsSoloSimple())
|
||||
mMixerBoard->UpdateSolo();
|
||||
}
|
||||
}
|
||||
|
||||
void AudacityProject::OnLockPlayRegion()
|
||||
|
Loading…
x
Reference in New Issue
Block a user