Skip to content
Snippets Groups Projects
Commit 4ce06f59 authored by dogmaphobic's avatar dogmaphobic
Browse files

Restore settings type and location for Mac OS.

parent 018b244a
No related branches found
No related tags found
No related merge requests found
......@@ -295,18 +295,9 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
this->setApplicationVersion(versionString);
// Set settings format
#if !defined(__mobile__) && !defined(__macos__)
QSettings::setDefaultFormat(QSettings::IniFormat);
#else
QString settingsLocation = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation);
if(!settingsLocation.isEmpty())
{
QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, settingsLocation);
}
#endif
QSettings settings;
qDebug() << "Settings location" << settings.fileName() << settings.isWritable();
qDebug() << "Settings location" << settings.fileName() << "Is writable?:" << settings.isWritable();
#ifdef UNITTEST_BUILD
if (!settings.isWritable()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment