fix segfault in boot recent list

This commit is contained in:
Malcolm Jestadt 2017-08-05 23:15:15 -04:00 committed by Ivan
parent f3ad922a8f
commit 009f53a267
1 changed files with 2 additions and 2 deletions

View File

@ -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;
} }