mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 09:09:04 +00:00
Qt/CodeViewWidget: Don't read PC in Update() if we don't have a CPU thread guard.
This commit is contained in:
parent
ef1520c2c6
commit
4e6c89fbfd
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ void CodeViewWidget::Update(const Core::CPUThreadGuard* guard)
|
||||||
for (int i = 0; i < rows; i++)
|
for (int i = 0; i < rows; i++)
|
||||||
setRowHeight(i, rowh);
|
setRowHeight(i, rowh);
|
||||||
|
|
||||||
u32 pc = PowerPC::ppcState.pc;
|
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;
|
const bool dark_theme = qApp->palette().color(QPalette::Base).valueF() < 0.5;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue