mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Triggger Clip Picker: fix crash at session close
This commit is contained in:
parent
834e164df0
commit
6df1bd3ad5
1 changed files with 2 additions and 1 deletions
|
|
@ -913,8 +913,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 ()) {
|
if (!_session || _session->deletion_in_progress () || !_session->the_auditioner ()) {
|
||||||
_show_plugin_btn.set_sensitive (false);
|
_show_plugin_btn.set_sensitive (false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
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…
Add table
Add a link
Reference in a new issue