From ef24aa69a6a29011276496b4b0d2afb989f8d43a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 6 Feb 2021 10:20:23 -0800 Subject: [PATCH] Debugger: Populate funcs if disassembly open early. --- Windows/Debugger/Debugger_Disasm.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Windows/Debugger/Debugger_Disasm.cpp b/Windows/Debugger/Debugger_Disasm.cpp index 39d29e7f62..d420ac0dd1 100644 --- a/Windows/Debugger/Debugger_Disasm.cpp +++ b/Windows/Debugger/Debugger_Disasm.cpp @@ -851,17 +851,17 @@ void CDisasm::SetDebugMode(bool _bDebug, bool switchPC) void CDisasm::Show(bool bShow) { if (deferredSymbolFill_ && bShow) { - if (g_symbolMap) + if (g_symbolMap) { g_symbolMap->FillSymbolListBox(GetDlgItem(m_hDlg, IDC_FUNCTIONLIST), ST_FUNCTION); - deferredSymbolFill_ = false; + deferredSymbolFill_ = false; + } } Dialog::Show(bShow); } void CDisasm::NotifyMapLoaded() { - if (m_bShowState == SW_SHOW) { - if (g_symbolMap) - g_symbolMap->FillSymbolListBox(GetDlgItem(m_hDlg, IDC_FUNCTIONLIST), ST_FUNCTION); + if (m_bShowState != SW_HIDE && g_symbolMap) { + g_symbolMap->FillSymbolListBox(GetDlgItem(m_hDlg, IDC_FUNCTIONLIST), ST_FUNCTION); } else { deferredSymbolFill_ = true; }