mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
Prevent adding "master" to a group
This commit is contained in:
parent
a67008a5cb
commit
46fe83cfff
1 changed files with 4 additions and 0 deletions
|
|
@ -155,6 +155,10 @@ RouteGroup::~RouteGroup ()
|
|||
int
|
||||
RouteGroup::add (boost::shared_ptr<Route> r)
|
||||
{
|
||||
if (r->is_master()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (find (routes->begin(), routes->end(), r) != routes->end()) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue