mackie: in Sends subview mode, the enable control for the send should be looked upin...
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 29 Jan 2016 17:40:13 +0000 (12:40 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 29 Jan 2016 17:41:50 +0000 (12:41 -0500)
libs/surfaces/mackie/strip.cc

index 6dac7fa25f87a92046bfcab57bf5155c648251c6..a5dee0949bf902950297dd3efcf4fbb171e39291 100644 (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();