13
0

Remove internal sends to an aux bus when it is removed.

git-svn-id: svn://localhost/ardour2/branches/3.0@6228 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-11-30 23:34:48 +00:00
parent fddc11f556
commit 4f445eab11

View File

@ -2382,6 +2382,18 @@ Session::remove_route (shared_ptr<Route> route)
route->input()->disconnect (0);
route->output()->disconnect (0);
/* if the route had internal sends sending to it, remove them */
if (route->internal_return()) {
boost::shared_ptr<RouteList> r = routes.reader ();
for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {
boost::shared_ptr<Send> s = (*i)->internal_send_for (route);
if (s) {
(*i)->remove_processor (s);
}
}
}
update_latency_compensation (false, false);
set_dirty();