summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_ui.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-01-25 22:06:41 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-01-25 22:06:41 -0500
commit7b6142ed9920903321add8be961a8abe8d899fa4 (patch)
tree4326d4cacc0bb08be5e19be341e3d06de628997d /gtk2_ardour/route_ui.cc
parent90d12b6d5aed5f304eab461f8f9b4b6d4cd29a22 (diff)
when using InverseGroup, do not collect group members and pass them to a session RT event method
Diffstat (limited to 'gtk2_ardour/route_ui.cc')
-rw-r--r--gtk2_ardour/route_ui.cc24
1 files changed, 14 insertions, 10 deletions
diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc
index a1a65750d1..6935afc547 100644
--- a/gtk2_ardour/route_ui.cc
+++ b/gtk2_ardour/route_ui.cc
@@ -405,7 +405,16 @@ RouteUI::mute_press (GdkEventButton* ev)
} else if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) {
- /* Primary-button1 applies change to the mix group even if it is not active
+ /* Primary-button1 inverts the implication of
+ the group being active. If the group is
+ active (for mute), then this modifier means
+ "do not apply to mute". If the group is
+ inactive (for mute), then this modifier
+ means "apply to route". This is all
+ accomplished by passing just the actual
+ route, along with the InverseGroup group
+ control disposition.
+
NOTE: Primary-button2 is MIDI learn.
*/
@@ -413,16 +422,11 @@ RouteUI::mute_press (GdkEventButton* ev)
if (ev->button == 1) {
- if (_route->route_group()) {
-
- rl = _route->route_group()->route_list();
+ rl.reset (new RouteList);
+ rl->push_back (_route);
- if (_mute_release) {
- _mute_release->routes = rl;
- }
- } else {
- rl.reset (new RouteList);
- rl->push_back (_route);
+ if (_mute_release) {
+ _mute_release->routes = rl;
}
DisplaySuspender ds;