trigger_ui: Fix crash when selecting a midi trigger
This commit is contained in:
parent
3b9fb818e8
commit
7ddecb91e0
@ -81,7 +81,7 @@ MidiTriggerPropertiesBox::~MidiTriggerPropertiesBox ()
|
||||
void
|
||||
MidiTriggerPropertiesBox::set_trigger (ARDOUR::TriggerReference tr)
|
||||
{
|
||||
boost::shared_ptr<ARDOUR::MIDITrigger> midi_trigger = boost::dynamic_pointer_cast<ARDOUR::MIDITrigger> (tref.trigger());
|
||||
boost::shared_ptr<ARDOUR::MIDITrigger> midi_trigger = boost::dynamic_pointer_cast<ARDOUR::MIDITrigger> (tr.trigger());
|
||||
|
||||
if (!midi_trigger) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user