fix /~/ expansion on osx

This commit is contained in:
Seth Alves 2018-02-23 10:50:57 -08:00
parent eea9394cd2
commit 277e1ebec4

View file

@ -139,10 +139,12 @@ QUrl PathUtils::expandToAppAbsolutePath(const QUrl& fileUrl) {
if (path.startsWith("/~/")) {
QString absolutePath = applicationAbsolutePath();
path.replace(0, 3, absolutePath);
url = QUrl("file:///" + path);
url = QUrl("file://" + path);
qDebug() << "QQQQ expandToAppAbsolutePath " << fileUrl << url;
}
return url;
}
const QString& PathUtils::qmlBaseUrl() {
static const QString staticResourcePath = resourcesUrl() + "qml/";
return staticResourcePath;