mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 13:56:59 +01: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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_ui->widget->EnsureGameDirectory()) {
|
// Prompt for a game folder when none are configured, but keep the launcher
|
||||||
QApplication::quit();
|
// open if the user dismisses the dialog (quitting here can segfault during
|
||||||
return;
|
// nested modal shutdown / background compatibility load).
|
||||||
}
|
m_ui->widget->EnsureGameDirectory();
|
||||||
|
|
||||||
m_ui->label_settings_file->setText(tr("Settings file: ") + m_ui->widget->GetSettingsFile());
|
m_ui->label_settings_file->setText(tr("Settings file: ") + m_ui->widget->GetSettingsFile());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user