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
|
@ -293,7 +293,7 @@ void CodeViewWidget::Update(const Core::CPUThreadGuard* guard)
|
|||
for (int i = 0; i < rows; i++)
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue