summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-01-29 12:58:50 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-01-29 12:58:50 -0500
commit39a61dba8324e6a92c303b7296cb0a7a7cc40145 (patch)
treef6e3ad15b0f6b80bbe39aa19e7f7f6ef51982af9
parentfd291d1fa5a227eb13767255c535f66120124f32 (diff)
mixbus: vpot press in non-subview mode should toggle master bus send
-rw-r--r--libs/surfaces/mackie/strip.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/surfaces/mackie/strip.cc b/libs/surfaces/mackie/strip.cc
index a5dee0949b..245f511241 100644
--- a/libs/surfaces/mackie/strip.cc
+++ b/libs/surfaces/mackie/strip.cc
@@ -837,8 +837,17 @@ Strip::vselect_event (Button&, ButtonState bs)
} else {
+#ifdef MIXBUS
+ if (_route) {
+ boost::shared_ptr<AutomationControl> ac = _route->master_send_enable_controllable ();
+ if (ac) {
+ bool enabled = ac->get_value();
+ ac->set_value (!enabled, Controllable::UseGroup);
+ }
+#else
DEBUG_TRACE (DEBUG::MackieControl, "switching to next pot mode\n");
next_pot_mode ();
+#endif
}
}