diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-10-18 21:28:36 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-10-18 21:36:39 -0400 |
| commit | e7939a6b4422e55844642d9382ad1aac7e952f6d (patch) | |
| tree | 9017280722cec222a0928ee21e0ad654b662a7aa /Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp | |
| parent | 90eaf9519cdac1b0411249aaefaf34dd20edf4a7 (diff) | |
DolphinWX: Reimplement cheat listbox updating, but without a global
Just use event handling.
Diffstat (limited to 'Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp b/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp index b266e9d7ab..aa4c0edbcc 100644 --- a/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp +++ b/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp @@ -17,6 +17,9 @@ #include "DolphinWX/WxUtils.h" #include "DolphinWX/Cheats/CreateCodeDialog.h" +// Fired when an ActionReplay code is created. +wxDEFINE_EVENT(UPDATE_CHEAT_LIST_EVENT, wxCommandEvent); + CreateCodeDialog::CreateCodeDialog(wxWindow* const parent, const u32 address) : wxDialog(parent, -1, _("Create AR Code")) , m_code_address(address) @@ -95,6 +98,9 @@ void CreateCodeDialog::PressOK(wxCommandEvent& ev) //ActionReplay::UpdateActiveList(); } + // Propagate back to the parent frame to update the cheat list. + GetEventHandler()->AddPendingEvent(wxCommandEvent(UPDATE_CHEAT_LIST_EVENT)); + Close(); } |
