diff --git a/Source/Core/DolphinWX/ARCodeAddEdit.cpp b/Source/Core/DolphinWX/ARCodeAddEdit.cpp index 8e33167989..0206c2634c 100644 --- a/Source/Core/DolphinWX/ARCodeAddEdit.cpp +++ b/Source/Core/DolphinWX/ARCodeAddEdit.cpp @@ -33,7 +33,7 @@ CARCodeAddEdit::CARCodeAddEdit(int _selection, wxWindow* parent, wxWindowID id, : wxDialog(parent, id, title, position, size, style) , selection(_selection) { - Bind(wxEVT_BUTTON, &CARCodeAddEdit::SaveCheatData, this); + Bind(wxEVT_BUTTON, &CARCodeAddEdit::SaveCheatData, this, wxID_OK); ActionReplay::ARCode tempEntries; wxString currentName = _("Insert name here.."); diff --git a/Source/Core/DolphinWX/ISOProperties.cpp b/Source/Core/DolphinWX/ISOProperties.cpp index 037f2afe3b..691c0a8e5e 100644 --- a/Source/Core/DolphinWX/ISOProperties.cpp +++ b/Source/Core/DolphinWX/ISOProperties.cpp @@ -1377,7 +1377,7 @@ void CISOProperties::PatchButtonClicked(wxCommandEvent& event) break; case ID_REMOVEPATCH: onFrame.erase(onFrame.begin() + Patches->GetSelection()); - Patches->Delete(Cheats->GetSelection()); + Patches->Delete(Patches->GetSelection()); break; }