diff options
author | Robin Gareus <robin@gareus.org> | 2015-04-30 17:58:33 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-04-30 17:58:33 +0200 |
commit | ae38128f88270df6ad24a0aa167adfc248276509 (patch) | |
tree | 6f8e29da167dd9580b5cb6550b610c0e6b36072e /libs/ardour/session_process.cc | |
parent | af884b41747ab959624ab85cff1da6963bf27bba (diff) |
session: add signal to indicate batch updates
…to tell the UI to not redraw.
Diffstat (limited to 'libs/ardour/session_process.cc')
-rw-r--r-- | libs/ardour/session_process.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc index 6366abde71..404f06128f 100644 --- a/libs/ardour/session_process.cc +++ b/libs/ardour/session_process.cc @@ -1254,12 +1254,15 @@ Session::compute_stop_limit () const */ void -Session::emit_route_signals () const +Session::emit_route_signals () { + // TODO use RAII to allow using these signals in other places + BatchUpdateStart(); /* EMIT SIGNAL */ boost::shared_ptr<RouteList> r = routes.reader (); for (RouteList::const_iterator ci = r->begin(); ci != r->end(); ++ci) { (*ci)->emit_pending_signals (); } + BatchUpdateEnd(); /* EMIT SIGNAL */ } void |