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();