Core: Kill off Host_UpdateBreakPointView()

Uses wxWidgets event propagation to the parent window which then appropriately handles the breakpoint list updating.
This commit is contained in:
Lioncash
2014-08-04 23:46:37 -04:00
parent 99dc069b9a
commit d4eb0684f7
7 changed files with 10 additions and 20 deletions

View File

@ -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();