mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Mackie Control: Don't show hidden groups either.
This commit is contained in:
parent
6b356448e3
commit
b3fd65d149
1 changed files with 8 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue