summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2018-04-17 14:19:16 +0200
committerLéo Lam <leo@innovatetechnologi.es>2018-04-17 14:21:18 +0200
commit69ad94997c4efbe4005dd71b333b309a06a9767d (patch)
treeb43d137de190390079df50cdf5f337a1a3713643 /Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp
parenteb97f2d5c621da84ea3a39d902b86576b959204a (diff)
Qt/Debugger: Don't pause when already paused
Fixes a severe performance issue which would cause the UI to use tons of CPU time and fail to update when scrolling with a breakpoint on PC.
Diffstat (limited to 'Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp')
-rw-r--r--Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp
index 1130ca7e7b..b04766f814 100644
--- a/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp
+++ b/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp
@@ -98,7 +98,7 @@ void CodeViewWidget::Update()
u32 pc = PowerPC::ppcState.pc;
- if (PowerPC::debug_interface.IsBreakpoint(pc))
+ if (Core::GetState() != Core::State::Paused && PowerPC::debug_interface.IsBreakpoint(pc))
Core::SetState(Core::State::Paused);
for (int i = 0; i < rowCount(); i++)