MackieControl: in sends subview, if there are no sends for a vpot, drop the controlla...
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 12 Jun 2016 12:44:34 +0000 (08:44 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Sun, 12 Jun 2016 12:44:34 +0000 (08:44 -0400)
libs/surfaces/mackie/strip.cc

index c43875028916d0c9ce9872f8d8bf372684b4738a..08f4b489c61b500ee5687e08b3edc069e8ddc9db 100644 (file)
@@ -1746,6 +1746,8 @@ Strip::setup_sends_vpot (boost::shared_ptr<Stripable> r)
        boost::shared_ptr<AutomationControl> pc = r->send_level_controllable (global_pos);
 
        if (!pc) {
+               /* nothing to control */
+               _vpot->set_control (boost::shared_ptr<AutomationControl>());
                pending_display[0] = string();
                pending_display[1] = string();
                return;
@@ -1769,6 +1771,8 @@ Strip::setup_trackview_vpot (boost::shared_ptr<Stripable> r)
        const uint32_t global_pos = _surface->mcp().global_index (*this);
 
        if (global_pos >= 8) {
+               /* nothing to control */
+               _vpot->set_control (boost::shared_ptr<AutomationControl>());
                pending_display[0] = string();
                pending_display[1] = string();
                return;