diff options
author | Robin Gareus <robin@gareus.org> | 2018-11-05 20:15:01 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-11-05 20:15:01 +0100 |
commit | 2bb22d2a14ead4e14bc842237219a893e1226980 (patch) | |
tree | d80ce1878a9933402bdc7f77c12a1e3b88f4a269 /gtk2_ardour/plugin_dspload_window.cc | |
parent | 9971e718fed4a1126d97bad69f2608638d5a5464 (diff) |
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.
Diffstat (limited to 'gtk2_ardour/plugin_dspload_window.cc')
-rw-r--r-- | gtk2_ardour/plugin_dspload_window.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/plugin_dspload_window.cc b/gtk2_ardour/plugin_dspload_window.cc index a86cfa2fc5..2e20f9dcc8 100644 --- a/gtk2_ardour/plugin_dspload_window.cc +++ b/gtk2_ardour/plugin_dspload_window.cc @@ -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) { |