mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 13:11:32 +00:00
fixed usage of Qt exit
This commit is contained in:
parent
0e3859385d
commit
4e25200844
1 changed files with 4 additions and 0 deletions
|
@ -178,6 +178,7 @@ void GraphicsPage::setupOgre()
|
||||||
msgBox.exec();
|
msgBox.exec();
|
||||||
|
|
||||||
QApplication::exit(1);
|
QApplication::exit(1);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -200,6 +201,7 @@ void GraphicsPage::setupOgre()
|
||||||
qCritical("Error creating Ogre::Root, the error reported was:\n %s", qPrintable(ogreError));
|
qCritical("Error creating Ogre::Root, the error reported was:\n %s", qPrintable(ogreError));
|
||||||
|
|
||||||
QApplication::exit(1);
|
QApplication::exit(1);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the available renderers and put them in the combobox
|
// Get the available renderers and put them in the combobox
|
||||||
|
@ -233,6 +235,7 @@ void GraphicsPage::setupOgre()
|
||||||
msgBox.exec();
|
msgBox.exec();
|
||||||
|
|
||||||
QApplication::exit(1);
|
QApplication::exit(1);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now fill the GUI elements
|
// Now fill the GUI elements
|
||||||
|
@ -418,6 +421,7 @@ void GraphicsPage::writeConfig()
|
||||||
qCritical("Error validating configuration");
|
qCritical("Error validating configuration");
|
||||||
|
|
||||||
QApplication::exit(1);
|
QApplication::exit(1);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write the settings to the config file
|
// Write the settings to the config file
|
||||||
|
|
Loading…
Reference in a new issue