From b3fd65d149fa09df532b16a883371137d514b6df Mon Sep 17 00:00:00 2001 From: Len Ovens Date: Fri, 15 Jan 2016 13:58:08 -0800 Subject: [PATCH] Mackie Control: Don't show hidden groups either. --- libs/surfaces/mackie/mackie_control_protocol.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 r) const bool MackieControlProtocol::is_hidden (boost::shared_ptr 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