Qt: Fix Library crashing if the MRU is empty (fixes #746)
Vicki Pfau vi@endrift.com
Tue, 13 Jun 2017 20:52:08 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
M
src/platform/qt/library/LibraryController.cpp
→
src/platform/qt/library/LibraryController.cpp
@@ -181,7 +181,7 @@ emit doneLoading();
} void LibraryController::selectLastBootedGame() { - if (!m_config) { + if (!m_config || m_config->getMRU().isEmpty()) { return; } const QString lastfile = m_config->getMRU().first();