diff --git a/src/plugins/projectexplorer/projectnodes.cpp b/src/plugins/projectexplorer/projectnodes.cpp index 45f185e5682..246b7f767a9 100644 --- a/src/plugins/projectexplorer/projectnodes.cpp +++ b/src/plugins/projectexplorer/projectnodes.cpp @@ -18,7 +18,6 @@ #include #include #include -#include #include #include @@ -331,11 +330,11 @@ FilePath Node::pathOrDirectory(bool dir) const location = m_filePath; } else { // Otherwise we figure out a commonPath from the subfolders - QStringList list; + FilePaths list; const QList folders = folder->folderNodes(); for (FolderNode *f : folders) - list << f->filePath().toString() + QLatin1Char('/'); - location = FilePath::fromString(Utils::commonPath(list)); + list << f->filePath(); + location = FileUtils::commonPath(list); } QTC_CHECK(!location.needsDevice());