Correct PrefixPath on iOS.
The iOS bundles are "flat", do not insert "/Contents/" like we do on OS X. Change-Id: I4e848f4425482b92cac04d940e5bce06b7199fc6 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
This commit is contained in:
parent
b8da27bc90
commit
c1417023d5
@ -442,7 +442,11 @@ QLibraryInfo::rawLocation(LibraryLocation loc, PathGroup group)
|
||||
QCFType<CFURLRef> urlRef = CFBundleCopyBundleURL(bundleRef);
|
||||
if (urlRef) {
|
||||
QCFString path = CFURLCopyFileSystemPath(urlRef, kCFURLPOSIXPathStyle);
|
||||
#ifdef Q_OS_MACX
|
||||
return QDir::cleanPath(QString(path) + QLatin1String("/Contents/") + ret);
|
||||
#else
|
||||
return QDir::cleanPath(QString(path) + QLatin1Char('/') + ret); // iOS
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user