mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
debugger_frame: don't query cpu thread if emulation is stopped anyway
This commit is contained in:
parent
ad22cf5051
commit
fcd6be71b0
1 changed files with 6 additions and 7 deletions
|
@ -984,12 +984,15 @@ void debugger_frame::UpdateUnitList()
|
||||||
|
|
||||||
void debugger_frame::OnSelectUnit()
|
void debugger_frame::OnSelectUnit()
|
||||||
{
|
{
|
||||||
const QVariant data = m_choice_units->currentData();
|
cpu_thread* selected = nullptr;
|
||||||
|
|
||||||
cpu_thread* selected = data.canConvert<data_type>() ? data.value<data_type>()() : nullptr;
|
|
||||||
|
|
||||||
if (m_emu_state != system_state::stopped)
|
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)
|
if (selected && m_cpu.get() == selected)
|
||||||
{
|
{
|
||||||
// They match, nothing to do.
|
// They match, nothing to do.
|
||||||
|
@ -1006,10 +1009,6 @@ void debugger_frame::OnSelectUnit()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
selected = nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_disasm.reset();
|
m_disasm.reset();
|
||||||
m_cpu.reset();
|
m_cpu.reset();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue