From 46b8b0963eb7ddde6a3b783969a0b4004cfaeab3 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 10 Feb 2022 00:42:26 +0100 Subject: [PATCH] Fix bounce_range_selection trigger slot dropdown --- 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 df1b100763..ce97d87a03 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -4198,7 +4198,8 @@ Editor::bounce_range_selection (BounceTarget target, bool enable_processing) for (int c = 0; c < default_triggers_per_box; ++c) { // XXX ('A' + x) is not translatable, TODO abstract using nth_letter() - tslot->AddMenuElem (Menu_Helpers::MenuElem (string_compose ("%1", (char)('A' + c)), sigc::bind ([] (uint32_t* t, uint32_t v) {*t = v;}, &trigger_slot, c))); + std::string lbl = string_compose ("%1", (char)('A' + c)); + tslot->AddMenuElem (Menu_Helpers::MenuElem (lbl, sigc::bind ([] (uint32_t* t, uint32_t v, ArdourDropdown* s, std::string l) {*t = v; s->set_text (l);}, &trigger_slot, c, tslot, lbl))); } tslot->set_active ("A");