mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
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:
@ -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)
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user