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.
This commit is contained in:
Léo Lam 2018-04-17 14:19:16 +02:00
parent eb97f2d5c6
commit 69ad94997c
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ void CodeViewWidget::Update()
u32 pc = PowerPC::ppcState.pc; 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); Core::SetState(Core::State::Paused);
for (int i = 0; i < rowCount(); i++) for (int i = 0; i < rowCount(); i++)