diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-04-10 16:14:10 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-04-12 09:00:18 +0000 |
commit | 58a46e69a34b755bd300bc1b83ff6d9c277baa58 (patch) | |
tree | 4c7e1f154d1752c1d58a0c9093fd53ac8b8b7e0b /src/app/qbs/commandlinefrontend.cpp | |
parent | 2a872a30bb433298cdf48854ef9f79e84615e467 (diff) | |
download | qbs-58a46e69a34b755bd300bc1b83ff6d9c277baa58.tar.gz |
Explicitly set the environment for resolving a project
Initialize the respective variable to the empty environment
and set it to the system environment explicitly in the
command-line frontend.
This makes the responsibilities clearer; there is no
behavior change.
Change-Id: I08efae8ac798d018d185da475a772a2502a5e8f7
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/app/qbs/commandlinefrontend.cpp')
-rw-r--r-- | src/app/qbs/commandlinefrontend.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/qbs/commandlinefrontend.cpp b/src/app/qbs/commandlinefrontend.cpp index 7c3905d50..d2ad8b7c7 100644 --- a/src/app/qbs/commandlinefrontend.cpp +++ b/src/app/qbs/commandlinefrontend.cpp @@ -139,6 +139,7 @@ void CommandLineFrontend::start() if (m_parser.showProgress()) m_observer = new ConsoleProgressObserver; SetupProjectParameters params; + params.setEnvironment(QProcessEnvironment::systemEnvironment()); params.setProjectFilePath(m_parser.projectFilePath()); params.setIgnoreDifferentProjectFilePath(m_parser.force()); params.setDryRun(m_parser.dryRun()); |