diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-09-05 23:09:10 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-09-05 23:09:10 +0000 |
commit | 222a85ca1074f30d9aea4a770900785d15420a84 (patch) | |
tree | cdca3566f684def1cebb4322dc21ed6a4674c836 /libs/ardour/session.cc | |
parent | b8e813c455f58150f9c2bd44b2a9d08b4393310b (diff) |
optionally tie together editor+mixer display orders; provide GUI control for timecode-is-synced; make Ctrl-w close any dialog
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2422 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 901e1d182b..3b54e324d3 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -4052,3 +4052,19 @@ Session::compute_initial_length () return _engine.frame_rate() * 60 * 5; } +void +Session::sync_order_keys () +{ + if (!Config->get_sync_all_route_ordering()) { + /* leave order keys as they are */ + return; + } + + boost::shared_ptr<RouteList> r = routes.reader (); + + for (RouteList::iterator i = r->begin(); i != r->end(); ++i) { + (*i)->sync_order_keys (); + } + + Route::SyncOrderKeys (); // EMIT SIGNAL +} |