DSP-Load Window: subscribe to newly added routes

This fixes an issue when adding plugins with the route (e.g MIDI)
or showing the window before adding a route in the first place.
This commit is contained in:
Robin Gareus 2018-11-05 20:15:01 +01:00
parent 9971e718fe
commit 2bb22d2a14

View File

@ -121,6 +121,11 @@ PluginDSPLoadWindow::refill_processors ()
/* may be called from session d'tor, removing monitor-section w/plugin */
return;
}
_session->RouteAdded.connect (
_route_connections, invalidator (*this), boost::bind (&PluginDSPLoadWindow::refill_processors, this), gui_context()
);
RouteList routes = _session->get_routelist ();
for (RouteList::const_iterator i = routes.begin(); i != routes.end(); ++i) {