From 8a6118bec66f174c3563a0daf152de50fded24d0 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sun, 23 Apr 2023 21:48:13 +0200 Subject: [PATCH] Qt/NetworkWidget: Don't update if not paused. This is similar to https://github.com/dolphin-emu/dolphin/pull/11623 where the Core state change invoked by the CPUThreadGuard does indirectly cause another Update() call. --- Source/Core/DolphinQt/Debugger/NetworkWidget.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Core/DolphinQt/Debugger/NetworkWidget.cpp b/Source/Core/DolphinQt/Debugger/NetworkWidget.cpp index b9504e64ff..8f820dd68c 100644 --- a/Source/Core/DolphinQt/Debugger/NetworkWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/NetworkWidget.cpp @@ -239,6 +239,16 @@ void NetworkWidget::Update() if (!isVisible()) return; + if (Core::GetState() != Core::State::Paused) + { + m_socket_table->setDisabled(true); + m_ssl_table->setDisabled(true); + return; + } + + m_socket_table->setDisabled(false); + m_ssl_table->setDisabled(false); + // needed because there's a race condition on the IOS instance otherwise Core::CPUThreadGuard guard(Core::System::GetInstance());