mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-21 14:50:06 +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)
|
while (t)
|
||||||
{
|
{
|
||||||
auto pt = dynamic_cast<PlayableTrack *>(t);
|
auto pt = dynamic_cast<PlayableTrack *>(t);
|
||||||
if (pt)
|
if (pt) {
|
||||||
pt->SetMute(true);
|
pt->SetMute(true);
|
||||||
|
if (IsSoloSimple())
|
||||||
|
pt->SetSolo(false);
|
||||||
|
}
|
||||||
t = iter.Next();
|
t = iter.Next();
|
||||||
}
|
}
|
||||||
|
|
||||||
ModifyState(true);
|
ModifyState(true);
|
||||||
RedrawProject();
|
RedrawProject();
|
||||||
if (mMixerBoard)
|
if (mMixerBoard) {
|
||||||
mMixerBoard->UpdateMute();
|
mMixerBoard->UpdateMute();
|
||||||
|
if (IsSoloSimple())
|
||||||
|
mMixerBoard->UpdateSolo();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudacityProject::OnUnMuteAllTracks()
|
void AudacityProject::OnUnMuteAllTracks()
|
||||||
@ -7434,15 +7439,21 @@ void AudacityProject::OnUnMuteAllTracks()
|
|||||||
while (t)
|
while (t)
|
||||||
{
|
{
|
||||||
auto pt = dynamic_cast<PlayableTrack *>(t);
|
auto pt = dynamic_cast<PlayableTrack *>(t);
|
||||||
if (pt)
|
if (pt) {
|
||||||
pt->SetMute(false);
|
pt->SetMute(false);
|
||||||
|
if (IsSoloSimple())
|
||||||
|
pt->SetSolo(false);
|
||||||
|
}
|
||||||
t = iter.Next();
|
t = iter.Next();
|
||||||
}
|
}
|
||||||
|
|
||||||
ModifyState(true);
|
ModifyState(true);
|
||||||
RedrawProject();
|
RedrawProject();
|
||||||
if (mMixerBoard)
|
if (mMixerBoard) {
|
||||||
mMixerBoard->UpdateMute();
|
mMixerBoard->UpdateMute();
|
||||||
|
if (IsSoloSimple())
|
||||||
|
mMixerBoard->UpdateSolo();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudacityProject::OnLockPlayRegion()
|
void AudacityProject::OnLockPlayRegion()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user