13
0

fix thinko with selection-based gain control

This commit is contained in:
Paul Davis 2023-07-26 18:15:42 -06:00
parent 5497c4e74e
commit bc407151cd

View File

@ -757,7 +757,7 @@ GainMeterBase::amp_start_touch (int state)
{
assert (_route);
if (!_route->route_group() || !_route->route_group()->is_gain()) {
if (_route->is_selected() && (!_route->route_group() || !_route->route_group()->is_gain())) {
_touch_control_group.reset (new GainControlGroup ());
_touch_control_group->set_mode (ControlGroup::Relative);
_touch_control_group->fill_from_selection (_control->session().selection(), _control->parameter());