aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/haskell/haskellrunconfiguration.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/haskell/haskellrunconfiguration.cpp b/plugins/haskell/haskellrunconfiguration.cpp
index 6075913..60c198c 100644
--- a/plugins/haskell/haskellrunconfiguration.cpp
+++ b/plugins/haskell/haskellrunconfiguration.cpp
@@ -56,12 +56,12 @@ HaskellExecutableAspect::HaskellExecutableAspect()
HaskellRunConfiguration::HaskellRunConfiguration(Target *target, Utils::Id id)
: RunConfiguration(target, id)
{
- addAspect<LocalEnvironmentAspect>(target);
+ auto envAspect = addAspect<LocalEnvironmentAspect>(target);
addAspect<HaskellExecutableAspect>();
addAspect<ArgumentsAspect>();
- auto workingDirAspect = addAspect<WorkingDirectoryAspect>();
+ auto workingDirAspect = addAspect<WorkingDirectoryAspect>(envAspect);
workingDirAspect->setDefaultWorkingDirectory(target->project()->projectDirectory());
workingDirAspect->setVisible(false);