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