From 2a52644bb620cb0b73526ded9282559376dd188a Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 21 May 2016 14:00:29 +0100 Subject: [PATCH] Real fix for Mac deployment issues. --- src/GUI/QtLauncher.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/GUI/QtLauncher.cxx b/src/GUI/QtLauncher.cxx index 4791819d0..fff547b3a 100644 --- a/src/GUI/QtLauncher.cxx +++ b/src/GUI/QtLauncher.cxx @@ -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"); -- 2.39.5