forked from qt-creator/qt-creator
CMake: Get better FileType in servermode reader
Change-Id: I8713043a625b17532ab33a72867aa0a20aa4cb3c Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -687,7 +687,7 @@ void ServerModeReader::addFileGroups(ProjectNode *targetRoot,
|
|||||||
return count != alreadyListed.count();
|
return count != alreadyListed.count();
|
||||||
});
|
});
|
||||||
const QList<FileNode *> newFileNodes = Utils::transform(newSources, [f](const Utils::FileName &fn) {
|
const QList<FileNode *> newFileNodes = Utils::transform(newSources, [f](const Utils::FileName &fn) {
|
||||||
return new FileNode(fn, FileType::Source, f->isGenerated);
|
return new FileNode(fn, Node::fileTypeForFileName(fn), f->isGenerated);
|
||||||
});
|
});
|
||||||
toList.append(newFileNodes);
|
toList.append(newFileNodes);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user