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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user