Fix DSP-load window when removing plugins/routes
authorRobin Gareus <robin@gareus.org>
Sat, 6 Oct 2018 23:44:33 +0000 (01:44 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 6 Oct 2018 23:44:33 +0000 (01:44 +0200)
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

index 9819c751b0e6641326c3b706f2c0b3e97222c9f1..a86cfa2fc5bc7448b7db354f12df1516bca7d8e4 100644 (file)
@@ -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<Processor> 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();