Revert "[Summary] Sort the routes of session before creating time axises unconditionally. This will keep tracks sorted even in case a new session created from template."

(Mistakenly applied cherry-pick)

This reverts commit 448b6f0cc7.
This commit is contained in:
Paul Davis
2015-04-06 12:21:26 -04:00
parent 448b6f0cc7
commit 7ccc471ce1

View File

@@ -1389,10 +1389,29 @@ EditorRoutes::initial_display ()
return;
}
RouteList r (*_session->get_routes());
r.sort (EditorOrderRouteSorter ());
_editor->add_routes (r);
boost::shared_ptr<RouteList> routes = _session->get_routes();
if (ARDOUR_UI::instance()->session_is_new ()) {
/* new session: stamp all routes with the right editor order
* key
*/
_editor->add_routes (*(routes.get()));
} else {
/* existing session: sort a copy of the route list by
* editor-order and add its contents to the display.
*/
RouteList r (*routes);
EditorOrderRouteSorter sorter;
r.sort (sorter);
_editor->add_routes (r);
}
}
void