Fix collection of route groups.
git-svn-id: svn://localhost/ardour2/branches/3.0@5342 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5f6a9fa003
commit
cc351b97a9
@ -666,6 +666,12 @@ EditorRouteGroups::connect_to_session (Session* s)
|
|||||||
groups_changed ();
|
groups_changed ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct CollectSorter {
|
||||||
|
bool operator () (Route* a, Route* b) {
|
||||||
|
return a->order_key (N_ ("editor")) < b->order_key (N_ ("editor"));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/** Collect all members of a RouteGroup so that they are together in the Editor.
|
/** Collect all members of a RouteGroup so that they are together in the Editor.
|
||||||
* @param g Group to collect.
|
* @param g Group to collect.
|
||||||
*/
|
*/
|
||||||
@ -673,6 +679,7 @@ void
|
|||||||
EditorRouteGroups::collect (RouteGroup* g)
|
EditorRouteGroups::collect (RouteGroup* g)
|
||||||
{
|
{
|
||||||
list<Route*> routes = g->route_list ();
|
list<Route*> routes = g->route_list ();
|
||||||
|
routes.sort (CollectSorter ());
|
||||||
int const N = routes.size ();
|
int const N = routes.size ();
|
||||||
|
|
||||||
list<Route*>::iterator i = routes.begin ();
|
list<Route*>::iterator i = routes.begin ();
|
||||||
|
Loading…
Reference in New Issue
Block a user