From be2331b6f15186d09fc7f9ffa3dd0e182fa8bc2c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 22 Nov 2014 16:44:31 -0500 Subject: [PATCH 1/2] DolphinWX: Fix button handling for AR codes --- Source/Core/DolphinWX/ARCodeAddEdit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/ARCodeAddEdit.cpp b/Source/Core/DolphinWX/ARCodeAddEdit.cpp index 8e3316798955..0206c2634cec 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.."); From f73b6abdf53d82f123b23331ae40da2f35da725e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 22 Nov 2014 17:25:14 -0500 Subject: [PATCH 2/2] DolphinWX: Fix patch removal --- Source/Core/DolphinWX/ISOProperties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/ISOProperties.cpp b/Source/Core/DolphinWX/ISOProperties.cpp index f2d0a501aeb9..c59a9b2d630d 100644 --- a/Source/Core/DolphinWX/ISOProperties.cpp +++ b/Source/Core/DolphinWX/ISOProperties.cpp @@ -1328,7 +1328,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; }