fix crash on session unload
This commit is contained in:
parent
0f1f7ca4fd
commit
93713d3aca
@ -267,6 +267,7 @@ void
|
|||||||
MeterStrip::set_session (Session* s)
|
MeterStrip::set_session (Session* s)
|
||||||
{
|
{
|
||||||
SessionHandlePtr::set_session (s);
|
SessionHandlePtr::set_session (s);
|
||||||
|
if (!s) return;
|
||||||
s->config.ParameterChanged.connect (*this, invalidator (*this), ui_bind (&MeterStrip::parameter_changed, this, _1), gui_context());
|
s->config.ParameterChanged.connect (*this, invalidator (*this), ui_bind (&MeterStrip::parameter_changed, this, _1), gui_context());
|
||||||
update_button_box();
|
update_button_box();
|
||||||
update_name_box();
|
update_name_box();
|
||||||
|
Loading…
Reference in New Issue
Block a user