From 0ccfa31ec89581cc06fc3bc2fc5c60f11acb4486 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Thu, 1 Dec 2022 16:43:41 -0800 Subject: [PATCH] Fix code widget not becoming visible when selecting 'view code' or similar This affected the memory and registers widgets (and possibly others). I'm pretty sure it regressed in 5f629abd8b89971872b0c2c2cdc8ea0035e8998d. The SetCodeVisible line is a new fix, but the equivalent already existed in the memory widget. --- Source/Core/DolphinQt/Debugger/CodeWidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp index 92e068fada..60f74e52ad 100644 --- a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp @@ -291,8 +291,10 @@ void CodeWidget::SetAddress(u32 address, CodeViewWidget::SetAddressUpdate update { m_code_view->SetAddress(address, update); - if (update == CodeViewWidget::SetAddressUpdate::WithUpdate) + if (update == CodeViewWidget::SetAddressUpdate::WithUpdate || + update == CodeViewWidget::SetAddressUpdate::WithDetailedUpdate) { + Settings::Instance().SetCodeVisible(true); raise(); m_code_view->setFocus(); }