diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-29 12:40:13 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-29 12:41:50 -0500 |
commit | c6ea3515d1f230757317b22e4419a380f89a4b1d (patch) | |
tree | 3dc8ff50717f38c7aac5ec58a310fb6ff3d797e1 /libs/surfaces | |
parent | 4b70a0aa0d5e0c289755b9e3c8f99ed487454ef3 (diff) |
mackie: in Sends subview mode, the enable control for the send should be looked upin the subview route, not the strip's own route
Diffstat (limited to 'libs/surfaces')
-rw-r--r-- | libs/surfaces/mackie/strip.cc | 6 |
1 files changed, 4 insertions, 2 deletions
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<Route> r = _surface->mcp().subview_route(); + + if (r) { const uint32_t global_pos = _surface->mcp().global_index (*this); - boost::shared_ptr<AutomationControl> control = _route->send_enable_controllable (global_pos); + boost::shared_ptr<AutomationControl> control = r->send_enable_controllable (global_pos); if (control) { bool currently_enabled = (bool) control->get_value(); |