Fix null pointer.

This commit is contained in:
Christian Speckner 2020-11-28 13:32:29 +01:00
parent d038cbabd7
commit 49d3877213
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ void LauncherDialog::loadConfig()
}
bool subDirs = instance().settings().getBool("launchersubdirs");
mySubDirs->setState(subDirs);
if (mySubDirs) mySubDirs->setState(subDirs);
myList->setIncludeSubDirs(subDirs);
// Assume that if the list is empty, this is the first time that loadConfig()