From 16ae154dff55af2e328b1acd8e02000fd82cc302 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 30 Jul 2013 17:54:52 +0200 Subject: [PATCH] clean up 44fc92c3 (not a threading issue but sigc++ problem) RouteUI is not sigc::trackable itself (only derived classes are) RouteUI::~RouteUI() does not disconnect from signals on destruction. --- gtk2_ardour/route_ui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc index 6a114b0e5f..c1dde89c39 100644 --- a/gtk2_ardour/route_ui.cc +++ b/gtk2_ardour/route_ui.cc @@ -171,7 +171,7 @@ RouteUI::init () monitor_disk_button->signal_button_press_event().connect (sigc::mem_fun(*this, &RouteUI::monitor_disk_press)); monitor_disk_button->signal_button_release_event().connect (sigc::mem_fun(*this, &RouteUI::monitor_disk_release)); - BusSendDisplayChanged.connect (*this, invalidator (*this), boost::bind(&RouteUI::bus_send_display_changed, this, _1), gui_context()); + BusSendDisplayChanged.connect_same_thread (*this, boost::bind(&RouteUI::bus_send_display_changed, this, _1)); } void