diff options
author | Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com> | 2015-04-10 12:32:41 +0200 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com> | 2015-05-05 06:20:19 +0000 |
commit | 25311df450b1c3677091d209ebc1899bbe461869 (patch) | |
tree | 35227fb366c84e155dc1b2d85b953f1c49f4c1d2 /src/corelib/io/qstandardpaths_ios.mm | |
parent | 827232a74d0910252df1ea226d4db54c3a029568 (diff) |
qstandardpaths_ios: use fallback for DesktopLocation
NSDesktopDirectory points to a non-existing write-protected path inside
the app sandbox. According to QSP documentation, we should fall back to
use the home directory instead.
Change-Id: I2c370af7758ac043eddcff84aa287eacc754ae38
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.mm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/corelib/io/qstandardpaths_ios.mm b/src/corelib/io/qstandardpaths_ios.mm index 4af1d93589..3cbdfbf40f 100644 --- a/src/corelib/io/qstandardpaths_ios.mm +++ b/src/corelib/io/qstandardpaths_ios.mm @@ -55,9 +55,6 @@ QString QStandardPaths::writableLocation(StandardLocation type) QString location; switch (type) { - case DesktopLocation: - location = pathForDirectory(NSDesktopDirectory); - break; case DocumentsLocation: location = pathForDirectory(NSDocumentDirectory); break; @@ -82,6 +79,7 @@ QString QStandardPaths::writableLocation(StandardLocation type) case TempLocation: location = QString::fromNSString(NSTemporaryDirectory()); break; + case DesktopLocation: case HomeLocation: location = bundlePath(); break; |