if (s) {
boost::shared_ptr<AutomationControl> ac = s->solo_control();
if (ac) {
- ac->set_value (!ac->get_value(), PBD::Controllable::UseGroup);
+ session.set_control (ac, !ac->get_value(), PBD::Controllable::UseGroup);
}
}
}
if (!s[0]) {
/* not even the first stripable exists, do nothing */
+ for (int n = 0; n < 8; ++n) {
+ stripable[n].reset ();
+ gain_meter[n]->knob->set_controllable (boost::shared_ptr<AutomationControl>());
+ gain_meter[n]->meter->set_meter (0);
+ }
return;
}
if (!stripable[n]) {
lower_text[n]->hide ();
hide_selection (n);
+ gain_meter[n]->knob->set_controllable (boost::shared_ptr<AutomationControl>());
+ gain_meter[n]->meter->set_meter (0);
} else {
lower_text[n]->show ();