mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:53:53 +00:00
launcher: Properly quit if settings write fails.
This commit is contained in:
parent
98e5cb6d7b
commit
fd25616cab
1 changed files with 3 additions and 1 deletions
|
@ -608,8 +608,10 @@ void MainDialog::closeEvent(QCloseEvent *event)
|
||||||
|
|
||||||
void MainDialog::play()
|
void MainDialog::play()
|
||||||
{
|
{
|
||||||
if (!writeSettings())
|
if (!writeSettings()) {
|
||||||
qApp->quit();
|
qApp->quit();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Launch the game detached
|
// Launch the game detached
|
||||||
startProgram(QString("openmw"), true);
|
startProgram(QString("openmw"), true);
|
||||||
|
|
Loading…
Reference in a new issue