mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-17 22:25:37 +00:00
Qt: Fix crash on startup with autoboot
This commit is contained in:
parent
d8d18d49eb
commit
49b4e1f0a6
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue