Make sure that the old route group is left properly when
setting a new one. Should fix #4441 and #4404. git-svn-id: svn://localhost/ardour2/branches/3.0@10438 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
69413ea089
commit
98370b39c4
@ -141,8 +141,10 @@ RouteGroup::add (boost::shared_ptr<Route> r)
|
||||
return 0;
|
||||
}
|
||||
|
||||
r->leave_route_group ();
|
||||
|
||||
if (r->route_group()) {
|
||||
r->route_group()->remove (r);
|
||||
}
|
||||
|
||||
routes->push_back (r);
|
||||
|
||||
r->join_route_group (this);
|
||||
|
Loading…
Reference in New Issue
Block a user