From 6bf69297c673b5f9bbb85733a2e35a107de9f625 Mon Sep 17 00:00:00 2001 From: Hashim Khan <64767361+Hashim1999164@users.noreply.github.com> Date: Tue, 18 Aug 2026 07:18:56 +0500 Subject: [PATCH] launcher: keep window open when game folder prompt is dismissed (#245) Calling QApplication::quit() after the user closes the first-run game folder dialog can segfault during nested modal shutdown. Leave the launcher open so settings can still be configured. Fixes #121. --- src/launcher/src/mainDialog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/launcher/src/mainDialog.cpp b/src/launcher/src/mainDialog.cpp index af3ef37b9..8fe923a8e 100644 --- a/src/launcher/src/mainDialog.cpp +++ b/src/launcher/src/mainDialog.cpp @@ -180,10 +180,10 @@ void MainDialogPrivate::FindInterpreter() { return; } - if (!m_ui->widget->EnsureGameDirectory()) { - QApplication::quit(); - return; - } + // Prompt for a game folder when none are configured, but keep the launcher + // open if the user dismisses the dialog (quitting here can segfault during + // nested modal shutdown / background compatibility load). + m_ui->widget->EnsureGameDirectory(); m_ui->label_settings_file->setText(tr("Settings file: ") + m_ui->widget->GetSettingsFile());