diff --git a/src/plugins/projectexplorer/project.cpp b/src/plugins/projectexplorer/project.cpp index 4c71e965df2..08e46dc11ab 100644 --- a/src/plugins/projectexplorer/project.cpp +++ b/src/plugins/projectexplorer/project.cpp @@ -709,7 +709,7 @@ FilePath Project::projectDirectory(const FilePath &top) { if (top.isEmpty()) return FilePath(); - return FilePath::fromString(top.toFileInfo().absoluteDir().path()); + return top.absolutePath(); } void Project::changeRootProjectDirectory() diff --git a/src/plugins/projectexplorer/projectnodes.cpp b/src/plugins/projectexplorer/projectnodes.cpp index 69fcd50c1a8..7b6866f92a6 100644 --- a/src/plugins/projectexplorer/projectnodes.cpp +++ b/src/plugins/projectexplorer/projectnodes.cpp @@ -71,7 +71,7 @@ static FolderNode *recursiveFindOrCreateFolderNode(FolderNode *folder, Utils::FilePath directoryWithoutPrefix; bool isRelative = false; - if (path.isEmpty() || path.toFileInfo().isRoot()) { + if (path.isEmpty() || path.toDir().isRoot()) { directoryWithoutPrefix = directory; isRelative = false; } else {