1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Bug1698: don't use 0 for menu item ID on Mac (assertion in wxWidgets)

This commit is contained in:
Paul Licameli
2017-08-01 10:03:47 -04:00
parent 6cb6652464
commit 5bdac8b4d7

View File

@@ -398,8 +398,8 @@ void KeyConfigPrefs::OnExport(wxCommandEvent & WXUNUSED(event))
void KeyConfigPrefs::OnDefaults(wxCommandEvent & event)
{
wxMenu Menu;
Menu.Append( 0, _("Standard") );
Menu.Append( 1, _("Full") );
Menu.Append( 1, _("Standard") );
Menu.Append( 2, _("Full") );
Menu.Bind( wxEVT_COMMAND_MENU_SELECTED, &KeyConfigPrefs::OnImportDefaults, this );
// Pop it up where the mouse is.
PopupMenu(&Menu);//, wxPoint(0, 0));
@@ -475,7 +475,7 @@ void KeyConfigPrefs::OnImportDefaults(wxCommandEvent & event)
gPrefs->Flush();
mNewKeys = mDefaultKeys;
if( event.GetId() == 0 )
if( event.GetId() == 1 )
FilterKeys( mNewKeys );
for (size_t i = 0; i < mNewKeys.GetCount(); i++) {