mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
fix segfault in boot recent list
This commit is contained in:
parent
f3ad922a8f
commit
009f53a267
1 changed files with 2 additions and 2 deletions
|
@ -899,12 +899,12 @@ QAction* main_window::CreateRecentAction(const q_string_pair& entry, const uint&
|
|||
{
|
||||
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);
|
||||
m_rg_entries.removeAt(idx);
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue