diff options
author | Carl Hetherington <carl@carlh.net> | 2011-04-19 15:46:47 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-04-19 15:46:47 +0000 |
commit | 480986bb603dd4465ecc083d930b392f1ea8f1d4 (patch) | |
tree | 03041a66cd700f041dd2be65d5dfc7e80ad755ca /libs/ardour/session_state.cc | |
parent | ac2689f6610ca19ee0cb0bf78432967a9da4c5ba (diff) |
Save route group reorderings in the session file. Link changes in the mixer and editor group lists (part of #3918).
git-svn-id: svn://localhost/ardour2/branches/3.0@9377 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index be29639a3b..f1bebae6e3 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -2298,9 +2298,21 @@ Session::remove_route_group (RouteGroup& rg) route_group_removed (); /* EMIT SIGNAL */ } +} +/** Set a new order for our route groups, without adding or removing any. + * @param groups Route group list in the new order. + */ +void +Session::reorder_route_groups (list<RouteGroup*> groups) +{ + _route_groups = groups; + + route_groups_reordered (); /* EMIT SIGNAL */ + set_dirty (); } + RouteGroup * Session::route_group_by_name (string name) { |