mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 07:13:49 +01: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)
|
void KeyConfigPrefs::OnDefaults(wxCommandEvent & event)
|
||||||
{
|
{
|
||||||
wxMenu Menu;
|
wxMenu Menu;
|
||||||
Menu.Append( 0, _("Standard") );
|
Menu.Append( 1, _("Standard") );
|
||||||
Menu.Append( 1, _("Full") );
|
Menu.Append( 2, _("Full") );
|
||||||
Menu.Bind( wxEVT_COMMAND_MENU_SELECTED, &KeyConfigPrefs::OnImportDefaults, this );
|
Menu.Bind( wxEVT_COMMAND_MENU_SELECTED, &KeyConfigPrefs::OnImportDefaults, this );
|
||||||
// Pop it up where the mouse is.
|
// Pop it up where the mouse is.
|
||||||
PopupMenu(&Menu);//, wxPoint(0, 0));
|
PopupMenu(&Menu);//, wxPoint(0, 0));
|
||||||
@@ -475,7 +475,7 @@ void KeyConfigPrefs::OnImportDefaults(wxCommandEvent & event)
|
|||||||
gPrefs->Flush();
|
gPrefs->Flush();
|
||||||
|
|
||||||
mNewKeys = mDefaultKeys;
|
mNewKeys = mDefaultKeys;
|
||||||
if( event.GetId() == 0 )
|
if( event.GetId() == 1 )
|
||||||
FilterKeys( mNewKeys );
|
FilterKeys( mNewKeys );
|
||||||
|
|
||||||
for (size_t i = 0; i < mNewKeys.GetCount(); i++) {
|
for (size_t i = 0; i < mNewKeys.GetCount(); i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user