Real fix for Mac deployment issues.
This commit is contained in:
parent
f2273c7793
commit
7dfe556b4a
1 changed files with 4 additions and 5 deletions
|
@ -379,16 +379,15 @@ void initApp(int& argc, char** argv)
|
|||
// and may crash if it is freed
|
||||
// http://doc.qt.io/qt-5/qguiapplication.html#QGuiApplication
|
||||
|
||||
#if 0
|
||||
QSettings::setDefaultFormat(QSettings::IniFormat);
|
||||
QSettings::setPath(QSettings::IniFormat, QSettings::UserScope,
|
||||
QString::fromStdString(globals->get_fg_home()));
|
||||
#endif
|
||||
QApplication* app = new QApplication(s_argc, argv);
|
||||
app->setOrganizationName("FlightGear");
|
||||
app->setApplicationName("FlightGear");
|
||||
app->setOrganizationDomain("flightgear.org");
|
||||
|
||||
QSettings::setDefaultFormat(QSettings::IniFormat);
|
||||
QSettings::setPath(QSettings::IniFormat, QSettings::UserScope,
|
||||
QString::fromStdString(globals->get_fg_home()));
|
||||
|
||||
// reset numeric / collation locales as described at:
|
||||
// http://doc.qt.io/qt-5/qcoreapplication.html#details
|
||||
::setlocale(LC_NUMERIC, "C");
|
||||
|
|
Loading…
Add table
Reference in a new issue