mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix Library crashing if the MRU is empty (fixes #746)
This commit is contained in:
parent
b97c871e1b
commit
655807441a
src/platform/qt/library
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue