From bf7ed81a39daf433dc9c9123627afd2381e58386 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 7 Oct 2018 01:44:33 +0200 Subject: Fix DSP-load window when removing plugins/routes DropReferences of a single item should only drop references of the instance in question -- and refill, keep the remaining items. --- gtk2_ardour/plugin_dspload_window.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/plugin_dspload_window.cc b/gtk2_ardour/plugin_dspload_window.cc index 9819c751b0..a86cfa2fc5 100644 --- a/gtk2_ardour/plugin_dspload_window.cc +++ b/gtk2_ardour/plugin_dspload_window.cc @@ -131,7 +131,7 @@ PluginDSPLoadWindow::refill_processors () ); (*i)->DropReferences.connect ( - _route_connections, invalidator (*this), boost::bind (&PluginDSPLoadWindow::drop_references, this), gui_context() + _route_connections, invalidator (*this), boost::bind (&PluginDSPLoadWindow::refill_processors, this), gui_context() ); } @@ -152,7 +152,7 @@ PluginDSPLoadWindow::add_processor_to_display (boost::weak_ptr w, std if (!pi) { return; } - p->DropReferences.connect (_processor_connections, MISSING_INVALIDATOR, boost::bind (&PluginDSPLoadWindow::drop_references, this), gui_context()); + p->DropReferences.connect (_processor_connections, MISSING_INVALIDATOR, boost::bind (&PluginDSPLoadWindow::refill_processors, this), gui_context()); PluginLoadStatsGui* plsg = new PluginLoadStatsGui (pi); std::string name = route_name + " - " + pi->name(); -- cgit v1.2.3