diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2013-01-29 18:00:30 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2013-04-11 15:15:08 +0200 |
commit | 47abeac15b4b3310f9521190c316f00ad33c3850 (patch) | |
tree | 1784014e71162fd8d1fb5f3140cad56ec91c7024 /src/plugins/projectexplorer/localapplicationruncontrol.cpp | |
parent | e837b4846518e659a7ff0145c28a1c7174ae32d5 (diff) |
Use EnvironmentAspect to retrieve the environment
Change-Id: If878e22cc2715d05bb3e65ad908cd4fb5e21b03b
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/projectexplorer/localapplicationruncontrol.cpp')
-rw-r--r-- | src/plugins/projectexplorer/localapplicationruncontrol.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/localapplicationruncontrol.cpp b/src/plugins/projectexplorer/localapplicationruncontrol.cpp index 3fc1626fad..429649df6c 100644 --- a/src/plugins/projectexplorer/localapplicationruncontrol.cpp +++ b/src/plugins/projectexplorer/localapplicationruncontrol.cpp @@ -30,6 +30,7 @@ #include "localapplicationruncontrol.h" #include "localapplicationrunconfiguration.h" +#include <projectexplorer/environmentaspect.h> #include <utils/qtcassert.h> #include <utils/environment.h> @@ -72,7 +73,10 @@ RunControl *LocalApplicationRunControlFactory::create(RunConfiguration *runConfi LocalApplicationRunControl::LocalApplicationRunControl(LocalApplicationRunConfiguration *rc, RunMode mode) : RunControl(rc, mode), m_running(false) { - Utils::Environment env = rc->environment(); + EnvironmentAspect *environment = rc->extraAspect<EnvironmentAspect>(); + Utils::Environment env; + if (environment) + env = environment->environment(); QString dir = rc->workingDirectory(); m_applicationLauncher.setEnvironment(env); m_applicationLauncher.setWorkingDirectory(dir); |