13
0

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.
This commit is contained in:
Robin Gareus 2018-10-07 01:44:33 +02:00
parent 1ea1312c11
commit bf7ed81a39

View File

@ -131,7 +131,7 @@ PluginDSPLoadWindow::refill_processors ()
); );
(*i)->DropReferences.connect ( (*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) { if (!pi) {
return; 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); PluginLoadStatsGui* plsg = new PluginLoadStatsGui (pi);
std::string name = route_name + " - " + pi->name(); std::string name = route_name + " - " + pi->name();