1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Undo incorrect change made in r10469, to CommandManager::InsertItem(). This may fix a problem in commands, as it restores stripping all accelerator characters and mnemonics from the given text.

This commit is contained in:
v.audacity 2012-02-08 00:40:34 +00:00
parent 4386504569
commit 7bdac9233b

View File

@ -388,7 +388,7 @@ void CommandManager::InsertItem(wxString name, wxString label_in,
for (size_t ndx = 1; ndx < cnt; ndx++) {
wxMenuItemList list = menu->GetMenuItems();
size_t lcnt = list.GetCount();
wxString label = names[ndx];
wxString label = wxMenuItem::GetLabelText(names[ndx]);
for (size_t lndx = 0; lndx < lcnt; lndx++) {
item = list.Item(lndx)->GetData();