diff --git a/src/plugins/qmakeprojectmanager/qmakeproject.cpp b/src/plugins/qmakeprojectmanager/qmakeproject.cpp index 297454831b8..413fd4b94c4 100644 --- a/src/plugins/qmakeprojectmanager/qmakeproject.cpp +++ b/src/plugins/qmakeprojectmanager/qmakeproject.cpp @@ -307,6 +307,8 @@ QmakeProject::QmakeProject(QmakeManager *manager, const QString &fileName) : m_asyncUpdateTimer.setInterval(3000); connect(&m_asyncUpdateTimer, &QTimer::timeout, this, &QmakeProject::asyncUpdate); + setRootProjectNode(new QmakeProFileNode(this, projectFilePath())); + connect(BuildManager::instance(), &BuildManager::buildQueueFinished, this, &QmakeProject::buildFinished); @@ -356,8 +358,6 @@ Project::RestoreResult QmakeProject::fromMap(const QVariantMap &map, QString *er projectManager()->registerProject(this); - setRootProjectNode(new QmakeProFileNode(this, projectFilePath())); - // On active buildconfiguration changes, reevaluate the .pro files m_activeTarget = activeTarget(); if (m_activeTarget) {