QmlProject: Set environment when creating a runnable

Task-number: QTCREATORBUG-16126
Change-Id: Id7f88f38e3f9e857acfabbf57001e29115f58507
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Tobias Hunger
2016-04-21 12:04:53 +02:00
parent 77a77b954e
commit 63eb9f7a2e

View File

@@ -67,6 +67,7 @@ Runnable QmlProjectRunConfiguration::runnable() const
r.executable = executable();
r.commandLineArguments = commandLineArguments();
r.runMode = ApplicationLauncher::Gui;
r.environment = extraAspect<QmlProjectEnvironmentAspect>()->environment();
r.workingDirectory = canonicalCapsPath(target()->project()->projectFilePath()
.toFileInfo().absolutePath());
return r;