all repos — mgba @ 655807441ac42be7ee5220bdab21cc7f4dbe701b

mGBA Game Boy Advance Emulator

Qt: Fix Library crashing if the MRU is empty (fixes #746)
Vicki Pfau vi@endrift.com
Tue, 13 Jun 2017 20:52:08 -0700
commit

655807441ac42be7ee5220bdab21cc7f4dbe701b

parent

b97c871e1b7e62928368d3288321070a9f11dc9c

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/library/LibraryController.cppsrc/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();