diff options
| author | Mai <mai.iam2048@gmail.com> | 2023-02-20 10:10:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-20 10:10:04 -0500 |
| commit | c7f48c8f284d359dac7131e243de81f08cb66d32 (patch) | |
| tree | 7c578c4385316c03c0a3ed63d8c9f38a67aba359 /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | |
| parent | ae7fc074f87a38cbeb570424693cf2635d7ada71 (diff) | |
| parent | 4e6c89fbfd0e0495163d609d745d92e7c1449a9d (diff) | |
Merge pull request #11587 from AdmiralCurtiss/code-view-breakpoint-logic
Qt/CodeViewWidget: Small fixes to Update().
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp index 15c76289b4..218350e568 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp @@ -293,10 +293,7 @@ void CodeViewWidget::Update(const Core::CPUThreadGuard* guard) for (int i = 0; i < rows; i++) setRowHeight(i, rowh); - u32 pc = PowerPC::ppcState.pc; - - if (Core::GetState() != Core::State::Paused && PowerPC::debug_interface.IsBreakpoint(pc)) - Core::SetState(Core::State::Paused); + const std::optional<u32> pc = guard ? std::make_optional(PowerPC::ppcState.pc) : std::nullopt; const bool dark_theme = qApp->palette().color(QPalette::Base).valueF() < 0.5; |
