mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-14 01:27:00 +00:00
debugger_frame: don't query cpu thread if emulation is stopped anyway
This commit is contained in:
parent
ad22cf5051
commit
fcd6be71b0
@ -984,12 +984,15 @@ void debugger_frame::UpdateUnitList()
|
||||
|
||||
void debugger_frame::OnSelectUnit()
|
||||
{
|
||||
const QVariant data = m_choice_units->currentData();
|
||||
|
||||
cpu_thread* selected = data.canConvert<data_type>() ? data.value<data_type>()() : nullptr;
|
||||
cpu_thread* selected = nullptr;
|
||||
|
||||
if (m_emu_state != system_state::stopped)
|
||||
{
|
||||
if (const QVariant data = m_choice_units->currentData(); data.canConvert<data_type>())
|
||||
{
|
||||
selected = data.value<data_type>()();
|
||||
}
|
||||
|
||||
if (selected && m_cpu.get() == selected)
|
||||
{
|
||||
// They match, nothing to do.
|
||||
@ -1006,10 +1009,6 @@ void debugger_frame::OnSelectUnit()
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
selected = nullptr;
|
||||
}
|
||||
|
||||
m_disasm.reset();
|
||||
m_cpu.reset();
|
||||
|
Loading…
x
Reference in New Issue
Block a user