core: reference configs by absolute instead of canonical paths

This commit is contained in:
outfoxxed 2025-10-18 14:09:03 -07:00
parent 00858812f2
commit 3e2ce40b18
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
4 changed files with 18 additions and 9 deletions

View file

@ -163,7 +163,7 @@ bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& interna
qCDebug(logQmlScanner) << "Found imports" << imports;
}
auto currentdir = QDir(QFileInfo(path).canonicalPath());
auto currentdir = QDir(QFileInfo(path).absolutePath());
// the root can never be a singleton so it dosent matter if we skip it
this->scanDir(currentdir.path());
@ -179,9 +179,9 @@ bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& interna
}
auto pathInfo = QFileInfo(ipath);
auto cpath = pathInfo.canonicalFilePath();
auto cpath = pathInfo.absoluteFilePath();
if (cpath.isEmpty()) {
if (!pathInfo.exists()) {
qCWarning(logQmlScanner) << "Ignoring unresolvable import" << ipath << "from" << path;
continue;
}