aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2016-08-23 11:56:17 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2016-08-23 11:01:20 +0000
commitf4b8ec1efc5cb2b50ac4cf9d8d0fc7db5028d336 (patch)
tree875d4f21cae6c87f43b43f81de5cd8ceeb75e231
parente87da5a08a686084840cace2901ec1ff5e87a0ab (diff)
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>
-rw-r--r--src/plugins/qbsprojectmanager/qbsproject.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/qbsprojectmanager/qbsproject.cpp b/src/plugins/qbsprojectmanager/qbsproject.cpp
index 10cda59ea7..0dd29a7921 100644
--- a/src/plugins/qbsprojectmanager/qbsproject.cpp
+++ b/src/plugins/qbsprojectmanager/qbsproject.cpp
@@ -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();
}