diff options
author | Robin Gareus <robin@gareus.org> | 2017-03-08 17:49:01 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-03-08 17:49:01 +0100 |
commit | 46fe83cfff0d188ec215c8bf5380aa673cb08aa7 (patch) | |
tree | fec8486c8554db7cf2665a3b7688f7b711ef77e2 /libs/ardour/route_group.cc | |
parent | a67008a5cbadba3caaf240043c609513f16e43d9 (diff) |
Prevent adding "master" to a group
Diffstat (limited to 'libs/ardour/route_group.cc')
-rw-r--r-- | libs/ardour/route_group.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/route_group.cc b/libs/ardour/route_group.cc index 519c88c84f..291806c8cb 100644 --- a/libs/ardour/route_group.cc +++ b/libs/ardour/route_group.cc @@ -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; } |