mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
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.
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user