From fd25616cab06903425eabb09157dc865e015e594 Mon Sep 17 00:00:00 2001 From: darkf Date: Tue, 11 Jun 2013 20:10:43 -0700 Subject: [PATCH] launcher: Properly quit if settings write fails. --- apps/launcher/maindialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/launcher/maindialog.cpp b/apps/launcher/maindialog.cpp index e5da3431ab..d0b3a2defe 100644 --- a/apps/launcher/maindialog.cpp +++ b/apps/launcher/maindialog.cpp @@ -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);