forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user