diff options
author | hjk <hjk@qt.io> | 2021-07-14 15:31:22 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2021-07-14 13:43:44 +0000 |
commit | 86149d9299e3f9b3b4eac0f0291261ab706388fa (patch) | |
tree | 75143d3dd7a1008b624a4420d589401b8e1be032 /src/libs/utils/fileinprojectfinder.cpp | |
parent | 426f8185c2bc707238f5ee316262e96db63d3853 (diff) |
Utils: Avoid a use of FilePath::toFileInfo() in FileInProjectFinder
Doesn't work with remote files.
Change-Id: I04a837013520f4f872599d0bb957c6da7ad9bf02
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/libs/utils/fileinprojectfinder.cpp')
-rw-r--r-- | src/libs/utils/fileinprojectfinder.cpp | 3 |
1 files changed, 1 insertions, 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(); |