summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui_dialogs.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-04-07 00:11:19 +0200
committerRobin Gareus <robin@gareus.org>2020-04-07 00:14:09 +0200
commit2991d74da53edc5a3b09d1cfdf7703212fda5d99 (patch)
tree68e92618972d450660246c2679655bb518bfed14 /gtk2_ardour/ardour_ui_dialogs.cc
parentaa2ddb5ea2b99797f24904d942ab682851dfb0b6 (diff)
GUI: follow LatencyUpdated signal handler, prevent duplicate updates
Diffstat (limited to 'gtk2_ardour/ardour_ui_dialogs.cc')
-rw-r--r--gtk2_ardour/ardour_ui_dialogs.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc
index c602c16dd4..2ca699df45 100644
--- a/gtk2_ardour/ardour_ui_dialogs.cc
+++ b/gtk2_ardour/ardour_ui_dialogs.cc
@@ -204,8 +204,8 @@ ARDOUR_UI::set_session (Session *s)
_session->locations()->removed.connect (_session_connections, MISSING_INVALIDATOR, boost::bind (&ARDOUR_UI::handle_locations_change, this, _1), gui_context());
_session->config.ParameterChanged.connect (_session_connections, MISSING_INVALIDATOR, boost::bind (&ARDOUR_UI::session_parameter_changed, this, _1), gui_context ());
- _session->LatencyUpdated.connect (_session_connections, MISSING_INVALIDATOR, boost::bind (&ARDOUR_UI::session_latency_updated, this), gui_context());
- session_latency_updated ();
+ _session->LatencyUpdated.connect (_session_connections, MISSING_INVALIDATOR, boost::bind (&ARDOUR_UI::session_latency_updated, this, _1), gui_context());
+ session_latency_updated (true);
/* Clocks are on by default after we are connected to a session, so show that here.
*/