fixes issue where monitor section gets stuck on mute

This mute button wasn't meant to mute the monitor section in the first
place.
This commit is contained in:
CalebJPotter 2022-03-09 09:57:05 -06:00 committed by Paul Davis
parent 643342995d
commit e64fdcfb55

View file

@ -1261,14 +1261,12 @@ MackieControlProtocol::prog2_clear_solo_press (Button &)
StripableList sl; StripableList sl;
session->get_stripables (sl); session->get_stripables (sl);
bool allmuted = true;
for (StripableList::const_iterator i = sl.begin(); i != sl.end(); ++i) for (StripableList::const_iterator i = sl.begin(); i != sl.end(); ++i)
{ {
boost::shared_ptr<MuteControl> mc = (*i)->mute_control(); boost::shared_ptr<MuteControl> mc = (*i)->mute_control();
if (!mc->muted() && (!(*i)->is_master())) if (!mc->muted() && (!(*i)->is_master()) && (!(*i)->is_monitor()))
{ {
mc->set_value(1.0, Controllable::UseGroup); mc->set_value(1.0, Controllable::UseGroup);
allmuted = false;
} }
} }