summaryrefslogtreecommitdiff
path: root/libs/ardour/route_group.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-03-08 17:49:01 +0100
committerRobin Gareus <robin@gareus.org>2017-03-08 17:49:01 +0100
commit46fe83cfff0d188ec215c8bf5380aa673cb08aa7 (patch)
treefec8486c8554db7cf2665a3b7688f7b711ef77e2 /libs/ardour/route_group.cc
parenta67008a5cbadba3caaf240043c609513f16e43d9 (diff)
Prevent adding "master" to a group
Diffstat (limited to 'libs/ardour/route_group.cc')
-rw-r--r--libs/ardour/route_group.cc4
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;
}