summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/MemoryView.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-08-04 23:46:37 -0400
committerLioncash <mathew1800@gmail.com>2014-08-08 19:21:29 -0400
commitd4eb0684f76b012dbec22285100808608fd2b914 (patch)
tree54d7f550e09cefb10a347e4b3039aee696ae7520 /Source/Core/DolphinWX/Debugger/MemoryView.cpp
parent99dc069b9a19661cf529028f3d6d1aa5ee69cf29 (diff)
Core: Kill off Host_UpdateBreakPointView()
Uses wxWidgets event propagation to the parent window which then appropriately handles the breakpoint list updating.
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/MemoryView.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/MemoryView.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Debugger/MemoryView.cpp b/Source/Core/DolphinWX/Debugger/MemoryView.cpp
index 0b4364a75e..c291b9c5ef 100644
--- a/Source/Core/DolphinWX/Debugger/MemoryView.cpp
+++ b/Source/Core/DolphinWX/Debugger/MemoryView.cpp
@@ -25,7 +25,7 @@
#include "Common/Common.h"
#include "Common/DebugInterface.h"
-#include "Core/Host.h"
+#include "DolphinWX/Globals.h"
#include "DolphinWX/WxUtils.h"
#include "DolphinWX/Debugger/DebuggerUIUtil.h"
#include "DolphinWX/Debugger/MemoryView.h"
@@ -97,7 +97,10 @@ void CMemoryView::OnMouseDownL(wxMouseEvent& event)
debugger->ToggleMemCheck(YToAddress(y));
Refresh();
- Host_UpdateBreakPointView();
+
+ // Propagate back to the parent window to update the breakpoint list.
+ wxCommandEvent evt(wxEVT_HOST_COMMAND, IDM_UPDATEBREAKPOINTS);
+ GetEventHandler()->AddPendingEvent(evt);
}
event.Skip();