projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b35644
)
Mackie Control: Don't show hidden groups either.
author
Len Ovens
<len@ovenwerks.net>
Fri, 15 Jan 2016 21:58:08 +0000
(13:58 -0800)
committer
Len Ovens
<len@ovenwerks.net>
Fri, 15 Jan 2016 21:58:08 +0000
(13:58 -0800)
libs/surfaces/mackie/mackie_control_protocol.cc
patch
|
blob
|
history
diff --git
a/libs/surfaces/mackie/mackie_control_protocol.cc
b/libs/surfaces/mackie/mackie_control_protocol.cc
index 66ab231141bfbdcf87608ff51e673539652f5829..ee3bccdcfbf8eb7bf581bae4739b0070e69d07d1 100644
(file)
--- a/
libs/surfaces/mackie/mackie_control_protocol.cc
+++ b/
libs/surfaces/mackie/mackie_control_protocol.cc
@@
-2224,7
+2224,14
@@
MackieControlProtocol::selected (boost::shared_ptr<Route> r) const
bool
MackieControlProtocol::is_hidden (boost::shared_ptr<Route> r) const
{
- return ((r->remote_control_id()) >>31) != 0;
+ if (!r) {
+ return false;
+ }
+ bool group = false;
+ if (r->route_group()) {
+ group = r->route_group()->is_hidden();
+ }
+ return (((r->remote_control_id()) >>31) != 0) || group;
}
boost::shared_ptr<Route>