From 4e25200844cb7b7dddfcfd75ad80f38e4d9a5c24 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Thu, 3 Nov 2011 09:08:40 +0100 Subject: [PATCH] fixed usage of Qt exit --- apps/launcher/graphicspage.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/launcher/graphicspage.cpp b/apps/launcher/graphicspage.cpp index 6ba8af515..92fbf3350 100644 --- a/apps/launcher/graphicspage.cpp +++ b/apps/launcher/graphicspage.cpp @@ -178,6 +178,7 @@ void GraphicsPage::setupOgre() msgBox.exec(); QApplication::exit(1); + return; } try @@ -200,6 +201,7 @@ void GraphicsPage::setupOgre() qCritical("Error creating Ogre::Root, the error reported was:\n %s", qPrintable(ogreError)); QApplication::exit(1); + return; } // Get the available renderers and put them in the combobox @@ -233,6 +235,7 @@ void GraphicsPage::setupOgre() msgBox.exec(); QApplication::exit(1); + return; } // Now fill the GUI elements @@ -418,6 +421,7 @@ void GraphicsPage::writeConfig() qCritical("Error validating configuration"); QApplication::exit(1); + return; } // Write the settings to the config file