diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-12 08:44:34 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-12 08:44:34 -0400 |
commit | 21bf61d559c1b6685029cf0dbd662d57c90cac7e (patch) | |
tree | b78dccb22cc91e57778a76d61b6f9f368f4a6955 | |
parent | beafe2be6e7acf3735bf73a94e4e11d275714656 (diff) |
MackieControl: in sends subview, if there are no sends for a vpot, drop the controllable for the vpot
-rw-r--r-- | libs/surfaces/mackie/strip.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/surfaces/mackie/strip.cc b/libs/surfaces/mackie/strip.cc index c438750289..08f4b489c6 100644 --- a/libs/surfaces/mackie/strip.cc +++ b/libs/surfaces/mackie/strip.cc @@ -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; |