Mackie Control: Don't show hidden groups either.
authorLen Ovens <len@ovenwerks.net>
Fri, 15 Jan 2016 21:58:08 +0000 (13:58 -0800)
committerLen Ovens <len@ovenwerks.net>
Fri, 15 Jan 2016 21:58:08 +0000 (13:58 -0800)
libs/surfaces/mackie/mackie_control_protocol.cc

index 66ab231141bfbdcf87608ff51e673539652f5829..ee3bccdcfbf8eb7bf581bae4739b0070e69d07d1 100644 (file)
@@ -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>