From cf46ac7dc952abf1ee67c3f938a4bd6b6c5973d5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 15 Aug 2014 15:10:41 -0400 Subject: Core: Kill off Host_ShowJitResults Another host function that can be killed off by simple wx event handling --- Source/Core/DolphinWX/Debugger/CodeView.cpp | 7 ++++++- 1 file changed, 6 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 182451beac..0c74b3dbd9 100644 --- a/Source/Core/DolphinWX/Debugger/CodeView.cpp +++ b/Source/Core/DolphinWX/Debugger/CodeView.cpp @@ -309,7 +309,12 @@ void CCodeView::OnPopupMenu(wxCommandEvent& event) break; case IDM_JITRESULTS: - m_debugger->ShowJitResults(m_selection); + { + // Propagate back to the parent window and tell it + // to flip to the JIT tab for the current address. + wxCommandEvent jit_event(wxEVT_HOST_COMMAND, IDM_UPDATEJITPANE); + GetEventHandler()->AddPendingEvent(jit_event); + } break; case IDM_FOLLOWBRANCH: -- cgit v1.2.3