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:
parent
4386504569
commit
7bdac9233b
@ -388,7 +388,7 @@ void CommandManager::InsertItem(wxString name, wxString label_in,
|
|||||||
for (size_t ndx = 1; ndx < cnt; ndx++) {
|
for (size_t ndx = 1; ndx < cnt; ndx++) {
|
||||||
wxMenuItemList list = menu->GetMenuItems();
|
wxMenuItemList list = menu->GetMenuItems();
|
||||||
size_t lcnt = list.GetCount();
|
size_t lcnt = list.GetCount();
|
||||||
wxString label = names[ndx];
|
wxString label = wxMenuItem::GetLabelText(names[ndx]);
|
||||||
|
|
||||||
for (size_t lndx = 0; lndx < lcnt; lndx++) {
|
for (size_t lndx = 0; lndx < lcnt; lndx++) {
|
||||||
item = list.Item(lndx)->GetData();
|
item = list.Item(lndx)->GetData();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user