Commit 15a2555e authored by Daniel Teske's avatar Daniel Teske
Browse files

QmakeProject: Set current Node after first parse



We reuse the m_checkForTemplateUpdate cariable, since this is going
to be reverted in master and replaced by a rework of the current node
handling anyway.

Task-number: QTCREATORBUG-13357
Change-Id: I7deb564219f258753263f3e1473625ce749393fd
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 2e87da24
......@@ -42,6 +42,7 @@
#include "wizards/qtquickapp.h"
#include <utils/algorithm.h>
#include <coreplugin/documentmanager.h>
#include <coreplugin/icontext.h>
#include <coreplugin/icore.h>
#include <coreplugin/progressmanager/progressmanager.h>
......@@ -54,6 +55,7 @@
#include <projectexplorer/headerpath.h>
#include <projectexplorer/target.h>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/session.h>
#include <proparser/qmakevfs.h>
#include <qtsupport/profilereader.h>
#include <qtsupport/qtkitinformation.h>
......@@ -840,6 +842,11 @@ void QmakeProject::decrementPendingEvaluateFutures()
updateBoilerPlateCodeFiles(&qtQuickApp, path);
}
}
ProjectExplorer::Node *node = ProjectExplorer::SessionManager::nodeForFile(Core::DocumentManager::currentFile());
if (node)
ProjectExplorerPlugin::setCurrentNode(node);
m_checkForTemplateUpdate = false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment