From d4eb0684f76b012dbec22285100808608fd2b914 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 4 Aug 2014 23:46:37 -0400 Subject: Core: Kill off Host_UpdateBreakPointView() Uses wxWidgets event propagation to the parent window which then appropriately handles the breakpoint list updating. --- Source/Core/DolphinWX/Debugger/CodeView.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Source/Core/DolphinWX/Debugger/CodeView.cpp') diff --git a/Source/Core/DolphinWX/Debugger/CodeView.cpp b/Source/Core/DolphinWX/Debugger/CodeView.cpp index 80b5598dfc..182451beac 100644 --- a/Source/Core/DolphinWX/Debugger/CodeView.cpp +++ b/Source/Core/DolphinWX/Debugger/CodeView.cpp @@ -33,6 +33,7 @@ #include "Common/SymbolDB.h" #include "Core/Core.h" #include "Core/Host.h" +#include "DolphinWX/Globals.h" #include "DolphinWX/WxUtils.h" #include "DolphinWX/Debugger/CodeView.h" #include "DolphinWX/Debugger/DebuggerUIUtil.h" @@ -139,7 +140,10 @@ void CCodeView::ToggleBreakpoint(u32 address) { m_debugger->ToggleBreakpoint(address); Refresh(); - Host_UpdateBreakPointView(); + + // Propagate back to the parent window to update the breakpoint list. + wxCommandEvent evt(wxEVT_HOST_COMMAND, IDM_UPDATEBREAKPOINTS); + GetEventHandler()->AddPendingEvent(evt); } void CCodeView::OnMouseMove(wxMouseEvent& event) -- cgit v1.2.3