projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b70a0a
)
mackie: in Sends subview mode, the enable control for the send should be looked upin...
author
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 29 Jan 2016 17:40:13 +0000
(12:40 -0500)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 29 Jan 2016 17:41:50 +0000
(12:41 -0500)
libs/surfaces/mackie/strip.cc
patch
|
blob
|
history
diff --git
a/libs/surfaces/mackie/strip.cc
b/libs/surfaces/mackie/strip.cc
index 6dac7fa25f87a92046bfcab57bf5155c648251c6..a5dee0949bf902950297dd3efcf4fbb171e39291 100644
(file)
--- 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();