13
0

mackie: in Sends subview mode, the enable control for the send should be looked upin the subview route, not the strip's own route

This commit is contained in:
Paul Davis 2016-01-29 12:40:13 -05:00
parent 4b70a0aa0d
commit c6ea3515d1

View File

@ -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();