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:
@@ -131,16 +131,7 @@ void QmlProject::refresh(RefreshOptions options)
|
||||
QmlJS::ModelManagerInterface::ProjectInfo pinfo(this);
|
||||
pinfo.sourceFiles = files();
|
||||
pinfo.importPaths = importPaths();
|
||||
pinfo.qmlDumpPath = Qt4ProjectManager::QmlDumpTool::qmlDumpPath(this);
|
||||
|
||||
if (activeTarget()) {
|
||||
if (const QmlProjectRunConfiguration *runConfig =
|
||||
qobject_cast<QmlProjectRunConfiguration*>(activeTarget()->activeRunConfiguration())) {
|
||||
if (runConfig->qtVersion()) {
|
||||
pinfo.qmlDumpEnvironment = runConfig->qtVersion()->qmlToolsEnvironment();
|
||||
}
|
||||
}
|
||||
}
|
||||
Qt4ProjectManager::QmlDumpTool::pathAndEnvironment(this, &pinfo.qmlDumpPath, &pinfo.qmlDumpEnvironment);
|
||||
m_modelManager->updateProjectInfo(pinfo);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user