From db96d1ab102c24474152fa0af95d1eb48e4ab1ed Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Thu, 12 Dec 2019 10:45:55 -0500 Subject: [PATCH] AddItemList no longer parses names for accelerators... ... This capability was unused. The only uses of item lists are in TrackMenus.cpp, for aligning tracks. The parsing of a translated string for encoded infomration was questionable. --- src/commands/CommandManager.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/commands/CommandManager.cpp b/src/commands/CommandManager.cpp index c0df43f8b..60f87220e 100644 --- a/src/commands/CommandManager.cpp +++ b/src/commands/CommandManager.cpp @@ -561,12 +561,9 @@ void CommandManager::AddItemList(const CommandID & name, bool bIsEffect) { for (size_t i = 0, cnt = nItems; i < cnt; i++) { - auto translated = items[i].Translation(); - auto stripped = translated.BeforeFirst(wxT('\t')); - auto accel = translated.AfterFirst(wxT('\t')); CommandListEntry *entry = NewIdentifier(name, - stripped, + items[i].Translation(), // No means yet to specify hasDialog ! false, CurrentMenu(), @@ -576,7 +573,6 @@ void CommandManager::AddItemList(const CommandID & name, i, cnt, Options{} - .Accel(accel) .IsEffect(bIsEffect)); entry->flags = flags; CurrentMenu()->Append(entry->id, GetLabel(entry));