DSP-Load Window: subscribe to newly added routes
authorRobin Gareus <robin@gareus.org>
Mon, 5 Nov 2018 19:15:01 +0000 (20:15 +0100)
committerRobin Gareus <robin@gareus.org>
Mon, 5 Nov 2018 19:15:01 +0000 (20:15 +0100)
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.

gtk2_ardour/plugin_dspload_window.cc

index a86cfa2fc5bc7448b7db354f12df1516bca7d8e4..2e20f9dcc8949436f760e7cea31e464ff2f5d156 100644 (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) {