Set session of PluginPinWidget created after ::set_session()
authorJohannes Mueller <github@johannes-mueller.org>
Sun, 28 Oct 2018 20:29:52 +0000 (21:29 +0100)
committerJohannes Mueller <github@johannes-mueller.org>
Mon, 29 Oct 2018 17:31:15 +0000 (18:31 +0100)
PluginPinWidgets initially receive their Session pointer by
PluginPinDialog::set_session(). When a RouteProcessorChange occurs all
PluginPinWidgets are recreated. Those newly created instances need a pointer to
the session.

gtk2_ardour/plugin_pin_dialog.cc

index 6493dbb7c89634ecdbf5aca72bcabb9de288685d..ed7032d0c8a59aaf6f96b06c097e01dcec76ac05 100644 (file)
@@ -2033,6 +2033,7 @@ PluginPinDialog::add_processor (boost::weak_ptr<Processor> p)
 #endif
        if (pi) {
                ppw.push_back (PluginPinWidgetPtr(new PluginPinWidget (pi)));
+               ppw.back()->set_session (_session);
                vbox->pack_start (*ppw.back());
        } else {
                HBox* hbox = manage (new HBox ());