mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 12:24:01 +02:00
still trying to get /~/ in json files to work right
This commit is contained in:
parent
277e1ebec4
commit
9b8c925b72
1 changed files with 4 additions and 0 deletions
|
@ -139,7 +139,11 @@ QUrl PathUtils::expandToAppAbsolutePath(const QUrl& fileUrl) {
|
|||
if (path.startsWith("/~/")) {
|
||||
QString absolutePath = applicationAbsolutePath();
|
||||
path.replace(0, 3, absolutePath);
|
||||
#if defined(Q_OS_OSX)
|
||||
url = QUrl("file://" + path);
|
||||
#else
|
||||
url = QUrl("file:///" + path);
|
||||
#endif
|
||||
qDebug() << "QQQQ expandToAppAbsolutePath " << fileUrl << url;
|
||||
}
|
||||
return url;
|
||||
|
|
Loading…
Reference in a new issue