Fix crash with minimal launcher UI.

This commit is contained in:
Christian Speckner 2021-01-06 21:51:53 +01:00
parent 1cf93ca0a0
commit 2f2ec4c300
1 changed files with 2 additions and 1 deletions

View File

@ -410,7 +410,8 @@ void LauncherDialog::loadConfig()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void LauncherDialog::saveConfig()
{
instance().settings().setValue("launchersubdirs", mySubDirs->getState());
if (mySubDirs)
instance().settings().setValue("launchersubdirs", mySubDirs->getState());
if(instance().settings().getBool("followlauncher"))
instance().settings().setValue("romdir", myList->currentDir().getShortPath());
}