From 8ec309f4f8b734ac93318a0196b36991332a93da Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Wed, 6 Jan 2021 21:51:53 +0100 Subject: [PATCH] Fix crash with minimal launcher UI. --- src/gui/LauncherDialog.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/LauncherDialog.cxx b/src/gui/LauncherDialog.cxx index 4daa4a42d..b3f00dfab 100644 --- a/src/gui/LauncherDialog.cxx +++ b/src/gui/LauncherDialog.cxx @@ -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()); }