Qt: Fix crash on startup with autoboot

This commit is contained in:
Connor McLaughlin 2022-08-04 21:06:58 +10:00
parent d8d18d49eb
commit 49b4e1f0a6

View file

@ -2189,9 +2189,9 @@ bool QtHost::ParseCommandLineParametersAndInitializeConfig(QApplication& app,
#undef CHECK_ARG_PARAM
}
if (!autoboot || !autoboot->filename.empty())
if (autoboot && !autoboot->filename.empty())
autoboot->filename += ' ';
autoboot->filename += args[i].toStdString();
AutoBoot(autoboot)->filename += args[i].toStdString();
}
// To do anything useful, we need the config initialized.