mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-27 07:43:50 +01:00
Fix: Resetting key binding to defaults now works correctly.
This commit is contained in:
@@ -352,6 +352,7 @@ void KeyConfigPrefs::OnDefaults(wxCommandEvent & e)
|
||||
{
|
||||
for (size_t i = 0; i < mNames.GetCount(); i++) {
|
||||
mManager->SetKeyFromIndex(i,mDefaultKeys[i]);
|
||||
mNewKeys[i]=mDefaultKeys[i];
|
||||
}
|
||||
RepopulateBindingsList();
|
||||
}
|
||||
|
||||
@@ -273,6 +273,7 @@ void PrefsDialog::OnOK(wxCommandEvent & event)
|
||||
gAudacityProjects[i]->UpdatePrefs();
|
||||
}
|
||||
|
||||
gPrefs->Flush();
|
||||
EndModal(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user