mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
launcher: Properly quit if settings write fails.
This commit is contained in:
parent
98e5cb6d7b
commit
fd25616cab
@ -608,8 +608,10 @@ void MainDialog::closeEvent(QCloseEvent *event)
|
||||
|
||||
void MainDialog::play()
|
||||
{
|
||||
if (!writeSettings())
|
||||
if (!writeSettings()) {
|
||||
qApp->quit();
|
||||
return;
|
||||
}
|
||||
|
||||
// Launch the game detached
|
||||
startProgram(QString("openmw"), true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user