forked from qt-creator/qt-creator
		
	qmldump: Ensure path and environment are taken from the same Qt version.
Fixes f1fb0bddb1.
Reviewed-by: Kai Koehne
			
			
This commit is contained in:
		@@ -597,10 +597,9 @@ void Qt4Project::updateQmlJSCodeModel()
 | 
			
		||||
            const QString qtVersionImportPath = qtVersion->versionInfo().value("QT_INSTALL_IMPORTS");
 | 
			
		||||
            if (!qtVersionImportPath.isEmpty())
 | 
			
		||||
                projectInfo.importPaths += qtVersionImportPath;
 | 
			
		||||
            projectInfo.qmlDumpEnvironment = qtVersion->qmlToolsEnvironment();
 | 
			
		||||
            projectInfo.qmlDumpPath = QmlDumpTool::qmlDumpPath(this);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    QmlDumpTool::pathAndEnvironment(this, &projectInfo.qmlDumpPath, &projectInfo.qmlDumpEnvironment);
 | 
			
		||||
    projectInfo.importPaths.removeDuplicates();
 | 
			
		||||
 | 
			
		||||
    modelManager->updateProjectInfo(projectInfo);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user