Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11587 from AdmiralCurtiss/code-view-breakpoint-logic
Qt/CodeViewWidget: Small fixes to Update().
  • Loading branch information
lioncash committed Feb 20, 2023
2 parents ae7fc07 + 4e6c89f commit c7f48c8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit c7f48c8

Please sign in to comment.