From fa0d1d98f9b0a7315b5b4f3fd1025b95d02465c3 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 10 Dec 2023 04:10:01 +0100 Subject: [PATCH] Update Section list (once) in the background This can accumulate multiple signal emissions into a single idle update. --- gtk2_ardour/editor_sections.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_sections.cc b/gtk2_ardour/editor_sections.cc index 636dacdf76..1fafdcf1bd 100644 --- a/gtk2_ardour/editor_sections.cc +++ b/gtk2_ardour/editor_sections.cc @@ -98,7 +98,7 @@ EditorSections::set_session (Session* s) if (_session) { _session->locations ()->added.connect (_session_connections, invalidator (*this), boost::bind (&EditorSections::location_changed, this, _1), gui_context ()); _session->locations ()->removed.connect (_session_connections, invalidator (*this), boost::bind (&EditorSections::location_changed, this, _1), gui_context ()); - _session->locations ()->changed.connect (_session_connections, invalidator (*this), boost::bind (&EditorSections::redisplay, this), gui_context ()); + _session->locations ()->changed.connect (_session_connections, invalidator (*this), boost::bind (&EditorSections::queue_redisplay, this), gui_context ()); Location::start_changed.connect (_session_connections, invalidator (*this), boost::bind (&EditorSections::location_changed, this, _1), gui_context ()); Location::end_changed.connect (_session_connections, invalidator (*this), boost::bind (&EditorSections::location_changed, this, _1), gui_context ());