From f4b8ec1efc5cb2b50ac4cf9d8d0fc7db5028d336 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 23 Aug 2016 11:56:17 +0200 Subject: [PATCH] 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 --- src/plugins/qbsprojectmanager/qbsproject.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/plugins/qbsprojectmanager/qbsproject.cpp b/src/plugins/qbsprojectmanager/qbsproject.cpp index 10cda59ea7e..0dd29a79211 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(); }