diff options
author | Len Ovens <len@ovenwerks.net> | 2016-01-15 13:58:08 -0800 |
---|---|---|
committer | Len Ovens <len@ovenwerks.net> | 2016-01-15 13:58:08 -0800 |
commit | b3fd65d149fa09df532b16a883371137d514b6df (patch) | |
tree | 966f63af28f13121f24e841e2e25eab63409000a | |
parent | 6b356448e314f7a280f0a04b5bccd221876c62dd (diff) |
Mackie Control: Don't show hidden groups either.
-rw-r--r-- | libs/surfaces/mackie/mackie_control_protocol.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/surfaces/mackie/mackie_control_protocol.cc b/libs/surfaces/mackie/mackie_control_protocol.cc index 66ab231141..ee3bccdcfb 100644 --- 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> |