mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
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:
parent
20fb871d5a
commit
6c19a776f4
1 changed files with 1 additions and 0 deletions
|
|
@ -2033,6 +2033,7 @@ PluginPinDialog::add_processor (boost::weak_ptr<Processor> p)
|
||||||
#endif
|
#endif
|
||||||
if (pi) {
|
if (pi) {
|
||||||
ppw.push_back (PluginPinWidgetPtr(new PluginPinWidget (pi)));
|
ppw.push_back (PluginPinWidgetPtr(new PluginPinWidget (pi)));
|
||||||
|
ppw.back()->set_session (_session);
|
||||||
vbox->pack_start (*ppw.back());
|
vbox->pack_start (*ppw.back());
|
||||||
} else {
|
} else {
|
||||||
HBox* hbox = manage (new HBox ());
|
HBox* hbox = manage (new HBox ());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue