Commit 0c0b0044 authored by Nikolai Kosjar's avatar Nikolai Kosjar

CppTools: Fix setting ProjectPart::project

This was forgotten in

  commit 8c90998f
  CppTools/ProjectManagers: Reduce ui blocking when loading projects

Change-Id: I5c3a8a4015dd3b4389a21a80367a9eac7ebd95fd
Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
parent 9c211ab4
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment