mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-01 11:27:45 +01:00
Sort strip at export, retain current order on import
This commit is contained in:
parent
f0a52eccc0
commit
be93b1ee29
1 changed files with 4 additions and 1 deletions
|
|
@ -1133,11 +1133,14 @@ Session::export_route_state (std::shared_ptr<RouteList> rl, const string& path,
|
|||
PlaylistSet playlists; // SessionPlaylists
|
||||
SourceSet sources;
|
||||
|
||||
RouteList sorted_rl (*rl);
|
||||
sorted_rl.sort (Stripable::Sorter ());
|
||||
|
||||
/* these will work with new_route_from_template()
|
||||
* TODO: LV2 plugin-state-dir needs to be relative (on load?)
|
||||
*/
|
||||
child = node->add_child ("Routes");
|
||||
for (auto const& r: *rl) {
|
||||
for (auto const& r: sorted_rl) {
|
||||
if (r->is_auditioner()) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue