13
0

Trigger Clip Picker: fix crash at exit (auditioner reference)

This commit is contained in:
Robin Gareus 2022-02-02 23:08:10 +01:00
parent a9b484e97e
commit 65e3177910
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -883,6 +883,9 @@ TriggerClipPicker::audition_processor_going_away ()
void
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 ());
_show_plugin_btn.set_sensitive (plugin_insert != 0);
}