Browse Source

Proper application data location for iOS

QGC4.4
Gus Grubba 6 years ago
parent
commit
6ab120ac48
  1. 2
      src/Settings/AppSettings.cc

2
src/Settings/AppSettings.cc

@ -46,7 +46,7 @@ DECLARE_SETTINGGROUP(App, "") @@ -46,7 +46,7 @@ DECLARE_SETTINGGROUP(App, "")
if (savePathFact->rawValue().toString().isEmpty() && _nameToMetaDataMap[savePathName]->rawDefaultValue().toString().isEmpty()) {
#ifdef __mobile__
#ifdef __ios__
QDir rootDir = QDir(QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation));
QDir rootDir = QDir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation));
#else
QDir rootDir = QDir(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation));
#endif

Loading…
Cancel
Save