forked from qt-creator/qt-creator
		
	Debugger/JS Code model: Set environment for QML tools correctly.
Set complete build environment (MinGW). Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Task-number: QTCREATORBUG-2883
This commit is contained in:
		@@ -597,14 +597,12 @@ 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);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    projectInfo.importPaths.removeDuplicates();
 | 
			
		||||
 | 
			
		||||
    if (projectInfo.qmlDumpPath.isNull()) {
 | 
			
		||||
        projectInfo.qmlDumpPath = QmlDumpTool::qmlDumpPath(this);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    modelManager->updateProjectInfo(projectInfo);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user