Merge pull request #1586 from lioncash/ar

DolphinWX: Fix button handling for AR codes and ISO patch removal.
This commit is contained in:
Lioncash 2014-11-22 17:42:21 -05:00
commit 60e9301f40
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ CARCodeAddEdit::CARCodeAddEdit(int _selection, wxWindow* parent, wxWindowID id,
: wxDialog(parent, id, title, position, size, style) : wxDialog(parent, id, title, position, size, style)
, selection(_selection) , selection(_selection)
{ {
Bind(wxEVT_BUTTON, &CARCodeAddEdit::SaveCheatData, this); Bind(wxEVT_BUTTON, &CARCodeAddEdit::SaveCheatData, this, wxID_OK);
ActionReplay::ARCode tempEntries; ActionReplay::ARCode tempEntries;
wxString currentName = _("Insert name here.."); wxString currentName = _("Insert name here..");

View File

@ -1377,7 +1377,7 @@ void CISOProperties::PatchButtonClicked(wxCommandEvent& event)
break; break;
case ID_REMOVEPATCH: case ID_REMOVEPATCH:
onFrame.erase(onFrame.begin() + Patches->GetSelection()); onFrame.erase(onFrame.begin() + Patches->GetSelection());
Patches->Delete(Cheats->GetSelection()); Patches->Delete(Patches->GetSelection());
break; break;
} }