summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2019-07-07 07:35:06 -0400
committerGitHub <noreply@github.com>2019-07-07 07:35:06 -0400
commit398aa2a9f976169c4ac8228f0969971f3e2ba2f3 (patch)
treed5526290d2c6552dfb6affaff63443ad8aaf60a7 /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
parentba20d30a0567aa28f922aecf59cb1a02f854bffc (diff)
parent92a655c8b90c62255bcd3fcc160e240c98f79217 (diff)
Merge pull request #8231 from JosJuice/debugger-hidden
DolphinQt: Don't update debug widgets when hidden
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
index 2427101cb7..d413bb0cd0 100644
--- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
@@ -92,6 +92,9 @@ void CodeViewWidget::FontBasedSizing()
void CodeViewWidget::Update()
{
+ if (!isVisible())
+ return;
+
if (m_updating)
return;
@@ -568,6 +571,11 @@ void CodeViewWidget::mousePressEvent(QMouseEvent* event)
}
}
+void CodeViewWidget::showEvent(QShowEvent* event)
+{
+ Update();
+}
+
void CodeViewWidget::ToggleBreakpoint()
{
if (PowerPC::debug_interface.IsBreakpoint(GetContextAddress()))