aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmljstools/qmljsmodelmanager.cpp
diff options
context:
space:
mode:
authorMarco Benelli <marco.benelli@qt.io>2017-06-08 15:20:11 +0200
committerMarco Benelli <marco.benelli@qt.io>2017-06-08 15:47:40 +0000
commit7a940febbead739ad5544ec87afd12279dd23615 (patch)
tree328491208d831b2e1e5b9089de3ad57993938d0e /src/plugins/qmljstools/qmljsmodelmanager.cpp
parent08ae312dce6136efeda6c4e81b36426dd9134300 (diff)
QmlJs: initialize qmlDumpEnvironment
Task-number: QTCREATORBUG-18335 Change-Id: I4f70da8062fde5aadef978f73351d8938d2267eb Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/qmljstools/qmljsmodelmanager.cpp')
-rw-r--r--src/plugins/qmljstools/qmljsmodelmanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qmljstools/qmljsmodelmanager.cpp b/src/plugins/qmljstools/qmljsmodelmanager.cpp
index 4b21b6d4a1a..60f7566713b 100644
--- a/src/plugins/qmljstools/qmljsmodelmanager.cpp
+++ b/src/plugins/qmljstools/qmljsmodelmanager.cpp
@@ -77,6 +77,7 @@ ModelManagerInterface::ProjectInfo ModelManager::defaultProjectInfoForProject(
Project *project) const
{
ModelManagerInterface::ProjectInfo projectInfo(project);
+ projectInfo.qmlDumpEnvironment = Utils::Environment::systemEnvironment();
Target *activeTarget = nullptr;
if (project) {
const QSet<QString> qmlTypeNames = { Constants::QML_MIMETYPE ,Constants::QBS_MIMETYPE,