forked from qt-creator/qt-creator
ProjectExplorer: Remove FileNode's isGenerated constructor bool
Use setter of base class, similar to setListInProject() before. Change-Id: Id620f0084a5dec0410f29c80f8f6393a6bcd5050 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -422,7 +422,7 @@ void TeaLeafReader::extractData()
|
||||
resetData();
|
||||
|
||||
m_projectName = m_parameters.projectName;
|
||||
m_files.emplace_back(std::make_unique<FileNode>(topCMake, FileType::Project, false));
|
||||
m_files.emplace_back(std::make_unique<FileNode>(topCMake, FileType::Project));
|
||||
// Do not insert topCMake into m_cmakeFiles: The project already watches that!
|
||||
|
||||
// Find cbp file
|
||||
@@ -458,7 +458,7 @@ void TeaLeafReader::extractData()
|
||||
if (!contains(m_files, [topCMake](const std::unique_ptr<FileNode> &fn) {
|
||||
return fn->filePath() == topCMake;
|
||||
}))
|
||||
m_files.emplace_back(std::make_unique<FileNode>(topCMake, FileType::Project, false));
|
||||
m_files.emplace_back(std::make_unique<FileNode>(topCMake, FileType::Project));
|
||||
|
||||
m_buildTargets = cbpparser.buildTargets();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user