still trying to get /~/ in json files to work right

This commit is contained in:
Seth Alves 2018-02-23 11:09:09 -08:00
parent 277e1ebec4
commit 9b8c925b72

View file

@ -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;