summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew McCann <amccann@gmail.com>2015-11-15 16:29:47 -0800
committerMilian Wolff <milian.wolff@kdab.com>2015-11-22 20:40:15 +0000
commitbc7d0da741d1bc2ab2d36227d40d255c692a6fa5 (patch)
tree37f96e5ac7216aee43f7326e3c6aa46ecef18a98
parentbe2e993a9ac03a6fc43b2fa15f3df068984acd70 (diff)
OS X: Fix QStandardPaths::standardLocations()
Task-number: QTBUG-49443 Change-Id: I0699dfd3cb4c710ab96c324219444c6294c9d732 Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com> Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
-rw-r--r--src/corelib/io/qstandardpaths_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qstandardpaths_mac.mm b/src/corelib/io/qstandardpaths_mac.mm
index d6126ce1c3..7b97a03db2 100644
--- a/src/corelib/io/qstandardpaths_mac.mm
+++ b/src/corelib/io/qstandardpaths_mac.mm
@@ -204,7 +204,7 @@ QStringList QStandardPaths::standardLocations(StandardLocation type)
CFRelease(bundleUrl);
CFURLRef resourcesUrl = CFBundleCopyResourcesDirectoryURL(mainBundle);
- CFStringRef cfResourcesPath = CFURLCopyPath(bundleUrl);
+ CFStringRef cfResourcesPath = CFURLCopyPath(resourcesUrl);
QString resourcesPath = QCFString::toQString(cfResourcesPath);
CFRelease(cfResourcesPath);
CFRelease(resourcesUrl);