From ae38128f88270df6ad24a0aa167adfc248276509 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 30 Apr 2015 17:58:33 +0200 Subject: session: add signal to indicate batch updates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …to tell the UI to not redraw. --- libs/ardour/session_process.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libs/ardour/session_process.cc') 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 r = routes.reader (); for (RouteList::const_iterator ci = r->begin(); ci != r->end(); ++ci) { (*ci)->emit_pending_signals (); } + BatchUpdateEnd(); /* EMIT SIGNAL */ } void -- cgit v1.2.3