1
0
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:
james.k.crook@gmail.com
2012-04-05 15:05:53 +00:00
parent 9f45d8c79a
commit 1caab1d2ee
2 changed files with 2 additions and 0 deletions

View File

@@ -352,6 +352,7 @@ void KeyConfigPrefs::OnDefaults(wxCommandEvent & e)
{ {
for (size_t i = 0; i < mNames.GetCount(); i++) { for (size_t i = 0; i < mNames.GetCount(); i++) {
mManager->SetKeyFromIndex(i,mDefaultKeys[i]); mManager->SetKeyFromIndex(i,mDefaultKeys[i]);
mNewKeys[i]=mDefaultKeys[i];
} }
RepopulateBindingsList(); RepopulateBindingsList();
} }

View File

@@ -273,6 +273,7 @@ void PrefsDialog::OnOK(wxCommandEvent & event)
gAudacityProjects[i]->UpdatePrefs(); gAudacityProjects[i]->UpdatePrefs();
} }
gPrefs->Flush();
EndModal(true); EndModal(true);
} }