X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fsession.cc;h=14ef0e1ac5b346a5b6a48e40ea33569265c957da;hb=f8480d6392e6d0e61aa39e564904ba67822f711e;hp=3b9b48a2de1d8f7e9743b187f964e349eb56fcc0;hpb=9829cd08feda431da54e26825e669fb3d749bb66;p=ardour.git diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 3b9b48a2de..14ef0e1ac5 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -2114,6 +2114,8 @@ Session::remove_route (shared_ptr route) route->drop_references (); + sync_order_keys (N_("session")); + /* save the new state of the world */ if (save_state (_current_snapshot_name)) { @@ -4274,7 +4276,7 @@ Session::compute_initial_length () } void -Session::sync_order_keys () +Session::sync_order_keys (const char* base) { if (!Config->get_sync_all_route_ordering()) { /* leave order keys as they are */ @@ -4284,10 +4286,10 @@ Session::sync_order_keys () boost::shared_ptr r = routes.reader (); for (RouteList::iterator i = r->begin(); i != r->end(); ++i) { - (*i)->sync_order_keys (); + (*i)->sync_order_keys (base); } - Route::SyncOrderKeys (); // EMIT SIGNAL + Route::SyncOrderKeys (base); // EMIT SIGNAL } void