Commit d201571a authored by Nikolai Kosjar's avatar Nikolai Kosjar

{Auto,Generic}Project: Fix setting ProjectPart::displayName

Before

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

the displayName was set in the ProjectPartBuilder constructor. Now this
needs to be done explicitly.

Change-Id: I67655a3a5b8052344084e467bb08efd07ab86ab4
Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
parent b99059bf
......@@ -288,6 +288,7 @@ void AutotoolsProject::updateCppCodeModel()
m_cppCodeModelUpdater->cancel();
CppTools::RawProjectPart rpp;
rpp.setDisplayName(displayName());
rpp.setProjectFile(projectFilePath().toString());
CppTools::ProjectPart::QtVersion activeQtVersion = CppTools::ProjectPart::NoQt;
......
......@@ -363,6 +363,7 @@ void GenericProject::refreshCppCodeModel()
}
CppTools::RawProjectPart rpp;
rpp.setDisplayName(displayName());
rpp.setProjectFile(projectFilePath().toString());
rpp.setQtVersion(activeQtVersion);
rpp.setIncludePaths(projectIncludePaths());
......
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