mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 12:24:01 +02:00
fix /~/ expansion on osx
This commit is contained in:
parent
eea9394cd2
commit
277e1ebec4
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue