QbsProjectManager: Fix target change

We must not reset the project data directly; that is done when re-
resolving has finished. If we do it before, then we won't notice later
that the project data has changed and code models etc are not updated.

Change-Id: Ib0c030b46510c0241167e3beb261a08a0353db02
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Christian Kandeler
2016-08-23 11:56:17 +02:00
parent e87da5a08a
commit f4b8ec1efc

View File

@@ -546,8 +546,6 @@ void QbsProject::changeActiveTarget(Target *t)
BuildConfiguration *bc = 0;
if (t) {
m_qbsProject = m_qbsProjects.value(t);
if (m_qbsProject.isValid())
m_projectData = m_qbsProject.projectData();
if (t->kit())
bc = t->activeBuildConfiguration();
}