qmake: Update the target info before updating code models

At least the QML code model would like to know what application targets
are available, so that it can figure out where to look for app.qmltypes
files.

Change-Id: I638936a90a91193bb59bd9b6827786e25f4eaad3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Ulf Hermann
2019-10-24 15:07:43 +02:00
parent 3cc6083c27
commit 3c556096ca

View File

@@ -477,8 +477,8 @@ void QmakeProject::decrementPendingEvaluateFutures()
// After being done, we need to call:
m_asyncUpdateState = Base;
updateCodeModels();
updateBuildSystemData();
updateCodeModels();
if (activeTarget())
activeTarget()->updateDefaultDeployConfigurations();
m_guard.markAsSuccess(); // Qmake always returns (some) data, even when it failed:-)