Qt: Fix crash on startup with autoboot

pull/2858/head
Connor McLaughlin 3 years ago
parent d8d18d49eb
commit 49b4e1f0a6

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

Loading…
Cancel
Save