From c6ea3515d1f230757317b22e4419a380f89a4b1d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 29 Jan 2016 12:40:13 -0500 Subject: mackie: in Sends subview mode, the enable control for the send should be looked upin the subview route, not the strip's own route --- libs/surfaces/mackie/strip.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libs') diff --git a/libs/surfaces/mackie/strip.cc b/libs/surfaces/mackie/strip.cc index 6dac7fa25f..a5dee0949b 100644 --- a/libs/surfaces/mackie/strip.cc +++ b/libs/surfaces/mackie/strip.cc @@ -792,10 +792,12 @@ Strip::vselect_event (Button&, ButtonState bs) /* Send mode: press enables/disables the relevant send */ - if (_route) { + boost::shared_ptr r = _surface->mcp().subview_route(); + + if (r) { const uint32_t global_pos = _surface->mcp().global_index (*this); - boost::shared_ptr control = _route->send_enable_controllable (global_pos); + boost::shared_ptr control = r->send_enable_controllable (global_pos); if (control) { bool currently_enabled = (bool) control->get_value(); -- cgit v1.2.3