forked from qt-creator/qt-creator
CppTools: Fix setting ProjectPart::project
This was forgotten in
commit 8c90998fff
CppTools/ProjectManagers: Reduce ui blocking when loading projects
Change-Id: I5c3a8a4015dd3b4389a21a80367a9eac7ebd95fd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -175,9 +175,11 @@ ProjectInfo ProjectInfoGenerator::generate()
|
||||
return m_projectInfo;
|
||||
}
|
||||
|
||||
static ProjectPart::Ptr projectPartFromRawProjectPart(const RawProjectPart &rawProjectPart)
|
||||
static ProjectPart::Ptr projectPartFromRawProjectPart(const RawProjectPart &rawProjectPart,
|
||||
ProjectExplorer::Project *project)
|
||||
{
|
||||
ProjectPart::Ptr part(new ProjectPart);
|
||||
part->project = project;
|
||||
part->projectFile = rawProjectPart.projectFile;
|
||||
part->projectConfigFile = rawProjectPart.projectConfigFile;
|
||||
part->qtVersion = rawProjectPart.qtVersion;
|
||||
@@ -196,7 +198,8 @@ void ProjectInfoGenerator::createProjectParts(const RawProjectPart &rawProjectPa
|
||||
rawProjectPart.fileClassifier);
|
||||
|
||||
if (cat.hasParts()) {
|
||||
const ProjectPart::Ptr part = projectPartFromRawProjectPart(rawProjectPart);
|
||||
const ProjectPart::Ptr part = projectPartFromRawProjectPart(rawProjectPart,
|
||||
m_projectUpdateInfo.project);
|
||||
|
||||
if (cat.hasCxxSources()) {
|
||||
createProjectPart(rawProjectPart,
|
||||
|
Reference in New Issue
Block a user