From d78364f90b031ab83f5d68d6e15ce3724e46fe9d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 24 Dec 2021 00:29:16 +0100 Subject: [PATCH] Un-hardcode number of trigger-slots --- gtk2_ardour/editor_ops.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 00a224271d..f071143520 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -80,6 +80,7 @@ #include "ardour/transient_detector.h" #include "ardour/transport_master_manager.h" #include "ardour/transpose.h" +#include "ardour/triggerbox.h" #include "ardour/vca_manager.h" #include "canvas/canvas.h" @@ -4184,7 +4185,7 @@ Editor::bounce_range_selection (BounceTarget target, bool enable_processing) HBox* tbox = manage (new HBox); tslot = manage (new ArdourDropdown ()); - for (int c = 0; c < 8; ++c) { + for (int c = 0; c < TriggerBox::default_triggers_per_box; ++c) { tslot->append_text_item (string_compose ("%1", (char)('A' + c))); // XXX not translatable } tslot->set_active ("A");