From 1abbb506b84edc05d50b8d30ed27b9001885f768 Mon Sep 17 00:00:00 2001 From: Torben Hohn Date: Thu, 3 Jun 2010 20:38:01 +0000 Subject: [PATCH] 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 --- libs/ardour/session.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 9dedb4634f..3655a074d8 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -1324,7 +1324,6 @@ Session::resort_routes () shared_ptr r = writer.get_copy (); resort_routes_using (r); /* writer goes out of scope and forces update */ - route_graph->rechain( r ); } //route_graph->dump(1); @@ -1382,6 +1381,8 @@ Session::resort_routes_using (shared_ptr r) RouteSorter cmp; r->sort (cmp); + route_graph->rechain( r ); + #ifndef NDEBUG DEBUG_TRACE (DEBUG::Graph, "Routes resorted, order follows:\n"); for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {