From 9cf65b63390a32f770a96fde9436b8d14e41e6b7 Mon Sep 17 00:00:00 2001
From: Colin Fletcher <colin.m.fletcher@googlemail.com>
Date: Fri, 15 Jul 2022 17:35:26 +0100
Subject: [PATCH] gtk2_ardour: only allow shift+click to disengage fader from
 group

Don't invert the group's gain sharing setting when the fader is
shift+clicked: only allow the group override modifier key to disable
grouped gain changes when the group is active, not to enable them when the
group is inactive.
---
 gtk2_ardour/gain_meter.cc | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc
index 5e101dac77..a2cac0f844 100644
--- a/gtk2_ardour/gain_meter.cc
+++ b/gtk2_ardour/gain_meter.cc
@@ -584,11 +584,7 @@ GainMeterBase::fader_moved ()
 		}
 
 		if (Keyboard::the_keyboard().modifier_state() == Keyboard::group_override_modifier ()) {
-			if (Config->get_group_override_inverts ()) {
-				_control->set_value (value, Controllable::InverseGroup);
-			} else {
-				_control->set_value (value, Controllable::NoGroup);
-			}
+			_control->set_value (value, Controllable::NoGroup);
 		} else {
 			_control->set_value (value, Controllable::UseGroup);
 		}
-- 
2.30.2

