From 027e7302b8806d6df258b5a6a47f471196c35a0d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 29 Dec 2021 13:06:10 -0700 Subject: [PATCH] triggerbox: don't get a new trigger if there isn't a current one and allstop is set --- libs/ardour/triggerbox.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index 309fadc4a7..ee7fbb917b 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -431,6 +431,7 @@ Trigger::shutdown () { _state = Stopped; _gain = 1.0; + pop_cue_properties (); DEBUG_TRACE (DEBUG::Triggers, string_compose ("%1 shuts down\n", name())); PropertyChanged (ARDOUR::Properties::running); } @@ -2432,7 +2433,7 @@ TriggerBox::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp /* STEP EIGHT: if there is no active slot, see if there any queued up */ - if (!_currently_playing) { + if (!_currently_playing && !allstop) { if ((_currently_playing = get_next_trigger()) != 0) { maybe_swap_pending (_currently_playing->index()); _currently_playing->startup ();