From 86149d9299e3f9b3b4eac0f0291261ab706388fa Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 14 Jul 2021 15:31:22 +0200 Subject: [PATCH] Utils: Avoid a use of FilePath::toFileInfo() in FileInProjectFinder Doesn't work with remote files. Change-Id: I04a837013520f4f872599d0bb957c6da7ad9bf02 Reviewed-by: Christian Stenger --- src/libs/utils/fileinprojectfinder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libs/utils/fileinprojectfinder.cpp b/src/libs/utils/fileinprojectfinder.cpp index 0d41433adaa..af95c47ecdd 100644 --- a/src/libs/utils/fileinprojectfinder.cpp +++ b/src/libs/utils/fileinprojectfinder.cpp @@ -88,9 +88,8 @@ void FileInProjectFinder::setProjectDirectory(const FilePath &absoluteProjectPat if (absoluteProjectPath == m_projectDir) return; - const QFileInfo infoPath = absoluteProjectPath.toFileInfo(); QTC_CHECK(absoluteProjectPath.isEmpty() - || (infoPath.exists() && infoPath.isAbsolute())); + || (absoluteProjectPath.exists() && absoluteProjectPath.isAbsolutePath())); m_projectDir = absoluteProjectPath; m_cache.clear();