1
0
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:
David Bailes 2017-04-05 13:02:22 +01:00
parent fa62d80a21
commit c8f58c90af

View File

@ -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()