Trigger Clip Picker: fix crash at exit (auditioner reference)
This commit is contained in:
parent
a9b484e97e
commit
65e3177910
@ -883,6 +883,9 @@ TriggerClipPicker::audition_processor_going_away ()
|
|||||||
void
|
void
|
||||||
TriggerClipPicker::audition_processors_changed ()
|
TriggerClipPicker::audition_processors_changed ()
|
||||||
{
|
{
|
||||||
|
if (!_session || _session->deletion_in_progress () || ! _session->the_auditioner ()) {
|
||||||
|
_show_plugin_btn.set_sensitive (false);
|
||||||
|
}
|
||||||
boost::shared_ptr<PluginInsert> plugin_insert = boost::dynamic_pointer_cast<PluginInsert> (_session->the_auditioner ()->the_instrument ());
|
boost::shared_ptr<PluginInsert> plugin_insert = boost::dynamic_pointer_cast<PluginInsert> (_session->the_auditioner ()->the_instrument ());
|
||||||
_show_plugin_btn.set_sensitive (plugin_insert != 0);
|
_show_plugin_btn.set_sensitive (plugin_insert != 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user