QmlProject: Reevaluate QML info after initial setup

We're setting up targets only after the initial refresh(Everything),
so we need to reconfigure the project after that. This fixes issues
where the QML editor still uses Qt Quick 1 imports from the default
Qt kit when a project is initially loaded.

Change-Id: I15af4a1b90231632303d2fd73db350a9d2aff0ce
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
This commit is contained in:
Kai Koehne
2014-12-03 13:30:37 +01:00
committed by Eike Ziller
parent 0dfb84da9e
commit 90bad9b139

View File

@@ -403,10 +403,7 @@ bool QmlProject::fromMap(const QVariantMap &map)
connect(this, SIGNAL(activeTargetChanged(ProjectExplorer::Target*)),
this, SLOT(onActiveTargetChanged(ProjectExplorer::Target*)));
// make sure we get updates on kit changes
m_activeTarget = activeTarget();
if (m_activeTarget)
connect(m_activeTarget, SIGNAL(kitChanged()), this, SLOT(onKitChanged()));
onActiveTargetChanged(activeTarget());
return true;
}