Debugger: make "PPC to x86" open JIT window

The button just silently did nothing if the window wasn't open, with no hint
as to how to make it work.
This commit is contained in:
Fiora committed 2014-08-14 08:37:33 -07:00
1 parent e0b0b7eaf5
commit c1f7b0ddc9
1 file changed
+5 -1
+5 -1
View File
@@ -555,8 +555,12 @@ void Host_UpdateDisasmDialog()
void Host_ShowJitResults(unsigned int address)
{
if (main_frame->g_pCodeWindow && main_frame->g_pCodeWindow->m_JitWindow)
if (main_frame->g_pCodeWindow)
{
if (!main_frame->g_pCodeWindow->m_JitWindow)
main_frame->g_pCodeWindow->ToggleJitWindow(true);
main_frame->g_pCodeWindow->m_JitWindow->ViewAddr(address);
}
}
void Host_UpdateMainFrame()