From: Robin Gareus Date: Sat, 6 Oct 2018 23:44:33 +0000 (+0200) Subject: Fix DSP-load window when removing plugins/routes X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=bf7ed81a39daf433dc9c9123627afd2381e58386;hp=1ea1312c114fce556315294fca3fb862b420711a;p=ardour.git 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. --- 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();