mirror of https://github.com/RPCS3/rpcs3.git
fix segfault in boot recent list
This commit is contained in:
parent
f3ad922a8f
commit
009f53a267
|
@ -899,12 +899,12 @@ QAction* main_window::CreateRecentAction(const q_string_pair& entry, const uint&
|
||||||
{
|
{
|
||||||
if (m_rg_entries.contains(entry))
|
if (m_rg_entries.contains(entry))
|
||||||
{
|
{
|
||||||
|
LOG_ERROR(GENERAL, "Recent Game not valid, removing from Boot Recent list: %s", sstr(entry.first));
|
||||||
|
|
||||||
int idx = m_rg_entries.indexOf(entry);
|
int idx = m_rg_entries.indexOf(entry);
|
||||||
m_rg_entries.removeAt(idx);
|
m_rg_entries.removeAt(idx);
|
||||||
|
|
||||||
guiSettings->SetValue(GUI::rg_entries, guiSettings->List2Var(m_rg_entries));
|
guiSettings->SetValue(GUI::rg_entries, guiSettings->List2Var(m_rg_entries));
|
||||||
|
|
||||||
LOG_ERROR(GENERAL, "Recent Game not valid, removed from Boot Recent list: %s", sstr(entry.first));
|
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue