Triggger Clip Picker: fix crash at session close

This commit is contained in:
Robin Gareus 2022-02-04 13:58:22 +01:00
parent 834e164df0
commit 6df1bd3ad5
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 2 additions and 1 deletions

View File

@ -913,8 +913,9 @@ TriggerClipPicker::audition_processor_going_away ()
void
TriggerClipPicker::audition_processors_changed ()
{
if (!_session || _session->deletion_in_progress () || ! _session->the_auditioner ()) {
if (!_session || _session->deletion_in_progress () || !_session->the_auditioner ()) {
_show_plugin_btn.set_sensitive (false);
return;
}
boost::shared_ptr<PluginInsert> plugin_insert = boost::dynamic_pointer_cast<PluginInsert> (_session->the_auditioner ()->the_instrument ());
_show_plugin_btn.set_sensitive (plugin_insert != 0);