13
0

Set session of PluginPinWidget created after ::set_session()

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.
This commit is contained in:
Johannes Mueller 2018-10-28 21:29:52 +01:00
parent 20fb871d5a
commit 6c19a776f4

View 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 ());