summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qstandardpaths_ios.mm
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2015-04-10 12:51:04 +0200
committerRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2015-05-05 06:20:23 +0000
commit12970e03123521192fa468548bf9235deabead79 (patch)
treeec18314c9111fc7c787896a1a6e87a20e9047370 /src/corelib/io/qstandardpaths_ios.mm
parent25311df450b1c3677091d209ebc1899bbe461869 (diff)
qstandardpaths_ios: return empty path for ApplicationsLocation
There is no ApplicationsLocation on iOS (at least not one that is public API). NSApplicationDirectory just points to a non-existing write-protected path inside the app sandbox. Rather than returning something we know is wrong, it's better to return an empty string. Change-Id: I2ebc151f15509ed5699af05def5c708a56eeaf31 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'src/corelib/io/qstandardpaths_ios.mm')
-rw-r--r--src/corelib/io/qstandardpaths_ios.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qstandardpaths_ios.mm b/src/corelib/io/qstandardpaths_ios.mm
index 3cbdfbf40f..6e53b75df4 100644
--- a/src/corelib/io/qstandardpaths_ios.mm
+++ b/src/corelib/io/qstandardpaths_ios.mm
@@ -62,7 +62,7 @@ QString QStandardPaths::writableLocation(StandardLocation type)
location = pathForDirectory(NSDocumentDirectory) + QLatin1String("/.fonts");
break;
case ApplicationsLocation:
- location = pathForDirectory(NSApplicationDirectory);
+ // NSApplicationDirectory points to a non-existing write-protected path.
break;
case MusicLocation:
// NSMusicDirectory points to a non-existing write-protected path. Use sensible fallback.