forked from qt-creator/qt-creator
Completely rework currentNode/currentProject handling
Centralize the handling inside a new class ProjectTree. React to moving focus and remove most special handling. This properly fixes the linked task. Task-number: QTCREATORBUG-13357 Change-Id: I6b06aa32b1e4305ec8a6d432857b302585d8734b Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -42,7 +42,6 @@
|
||||
#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>
|
||||
@@ -55,7 +54,6 @@
|
||||
#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>
|
||||
@@ -842,11 +840,6 @@ void QmakeProject::decrementPendingEvaluateFutures()
|
||||
updateBoilerPlateCodeFiles(&qtQuickApp, path);
|
||||
}
|
||||
}
|
||||
|
||||
ProjectExplorer::Node *node = ProjectExplorer::SessionManager::nodeForFile(Core::DocumentManager::currentFile());
|
||||
if (node)
|
||||
ProjectExplorerPlugin::setCurrentNode(node);
|
||||
|
||||
m_checkForTemplateUpdate = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user