diff --git a/src/plugins/qbsprojectmanager/qbsproject.cpp b/src/plugins/qbsprojectmanager/qbsproject.cpp index b3264dfb592..96efcd1d6ba 100644 --- a/src/plugins/qbsprojectmanager/qbsproject.cpp +++ b/src/plugins/qbsprojectmanager/qbsproject.cpp @@ -480,7 +480,7 @@ void QbsBuildSystem::updateProjectNodes(const std::function &continuati m_treeCreationWatcher = new TreeCreationWatcher(this); connect(m_treeCreationWatcher, &TreeCreationWatcher::finished, this, [this, watcher = m_treeCreationWatcher, continuation] { - std::unique_ptr rootNode(m_treeCreationWatcher->result()); + std::unique_ptr rootNode(watcher->result()); if (watcher != m_treeCreationWatcher) { watcher->deleteLater(); return;