Qt: Fix Library crashing if the MRU is empty (fixes #746)

This commit is contained in:
Vicki Pfau 2017-06-13 20:52:08 -07:00
parent b97c871e1b
commit 655807441a
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ void LibraryController::refresh() {
}
void LibraryController::selectLastBootedGame() {
if (!m_config) {
if (!m_config || m_config->getMRU().isEmpty()) {
return;
}
const QString lastfile = m_config->getMRU().first();