move route_graph->rechain( r ); into Session::resort_routes_using
git-svn-id: svn://localhost/ardour2/branches/3.0@7227 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
932d6c79d0
commit
1abbb506b8
|
@ -1324,7 +1324,6 @@ Session::resort_routes ()
|
||||||
shared_ptr<RouteList> r = writer.get_copy ();
|
shared_ptr<RouteList> r = writer.get_copy ();
|
||||||
resort_routes_using (r);
|
resort_routes_using (r);
|
||||||
/* writer goes out of scope and forces update */
|
/* writer goes out of scope and forces update */
|
||||||
route_graph->rechain( r );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//route_graph->dump(1);
|
//route_graph->dump(1);
|
||||||
|
@ -1382,6 +1381,8 @@ Session::resort_routes_using (shared_ptr<RouteList> r)
|
||||||
RouteSorter cmp;
|
RouteSorter cmp;
|
||||||
r->sort (cmp);
|
r->sort (cmp);
|
||||||
|
|
||||||
|
route_graph->rechain( r );
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
DEBUG_TRACE (DEBUG::Graph, "Routes resorted, order follows:\n");
|
DEBUG_TRACE (DEBUG::Graph, "Routes resorted, order follows:\n");
|
||||||
for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {
|
for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user