From bc407151cd36866bc46d13f2f9e3bf51939e2119 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 26 Jul 2023 18:15:42 -0600 Subject: [PATCH] fix thinko with selection-based gain control --- gtk2_ardour/gain_meter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc index abd33f6cb6..b4481d628f 100644 --- a/gtk2_ardour/gain_meter.cc +++ b/gtk2_ardour/gain_meter.cc @@ -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());