From 3df88accc6b637ba8b7d59bd11a1ac0d45f7ecda Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 16 Feb 2019 13:06:08 -0700 Subject: [PATCH] additional logic to avoid showing top-level menu actions in the key shortcut editor --- gtk2_ardour/keyeditor.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/keyeditor.cc b/gtk2_ardour/keyeditor.cc index a985e4daba..0f70998c09 100644 --- a/gtk2_ardour/keyeditor.cc +++ b/gtk2_ardour/keyeditor.cc @@ -371,8 +371,10 @@ KeyEditor::Tab::populate () } //kinda kludgy way to avoid displaying menu items as mappable - if ((action_name.find ("Menu") == action_name.length() - 4) || - (action_name.find ("menu") == action_name.length() - 4) || + if ((action_name.find (X_("Menu")) == action_name.length() - 4) || + (action_name.find (X_("menu")) == action_name.length() - 4) || + (category.find (X_("Menu")) == category.length() - 4) || + (category.find (X_("menu")) == category.length() - 4) || (action_name == _("RegionList"))) { continue; }