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:
		@@ -53,6 +53,7 @@
 | 
			
		||||
#include <coreplugin/jsexpander.h>
 | 
			
		||||
#include <coreplugin/vcsmanager.h>
 | 
			
		||||
#include <cppeditor/cppeditorconstants.h>
 | 
			
		||||
#include <projectexplorer/projecttree.h>
 | 
			
		||||
 | 
			
		||||
#include <utils/fileutils.h>
 | 
			
		||||
#include <utils/hostosinfo.h>
 | 
			
		||||
@@ -431,7 +432,7 @@ QString correspondingHeaderOrSource(const QString &fileName, bool *wasHeader)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Find files in the current project
 | 
			
		||||
    ProjectExplorer::Project *currentProject = ProjectExplorer::ProjectExplorerPlugin::currentProject();
 | 
			
		||||
    ProjectExplorer::Project *currentProject = ProjectExplorer::ProjectTree::currentProject();
 | 
			
		||||
    if (currentProject) {
 | 
			
		||||
        const QString path = correspondingHeaderOrSourceInProject(fi, candidateFileNames,
 | 
			
		||||
                                                                  currentProject);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user