From 49b4e1f0a6c54d34664bc8cd6f966eae634c974f Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 4 Aug 2022 21:06:58 +1000 Subject: [PATCH] Qt: Fix crash on startup with autoboot --- src/duckstation-qt/qthost.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/duckstation-qt/qthost.cpp b/src/duckstation-qt/qthost.cpp index df7302035..711e03190 100644 --- a/src/duckstation-qt/qthost.cpp +++ b/src/duckstation-qt/qthost.cpp @@ -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.