qmldump: Ensure path and environment are taken from the same Qt version.

Fixes f1fb0bddb1.

Reviewed-by: Kai Koehne
This commit is contained in:
Christian Kamm
2010-10-26 16:29:46 +02:00
parent f1fb0bddb1
commit 528999d549
4 changed files with 9 additions and 16 deletions

View File

@@ -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);