QmlPreview: workaround for not starting preview

In case of absolute path do not try wrongly calculated
candidates.

Task-number: QDS-13292
Change-Id: I6edb61957200b10f9465ad2eaeefeee533ac2375
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tim Jenssen
2024-10-30 13:16:55 +01:00
parent 6d59679efb
commit 5ad2b7131f

View File

@@ -191,6 +191,11 @@ bool FileInProjectFinder::findFileOrDirectory(const FilePath &originalPath, File
directoryHandler(node->children.keys(), origLength); directoryHandler(node->children.keys(), origLength);
qCDebug(finderLog) << "FileInProjectFinder: found virtual directory" << originalPath qCDebug(finderLog) << "FileInProjectFinder: found virtual directory" << originalPath
<< "in mapped paths"; << "in mapped paths";
}
}
if (originalPath == m_projectDir) {
if (checkPath(originalPath, originalPath.toFSPathString().length(), fileHandler, directoryHandler)) {
return true; return true;
} }
} }