aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythonrunconfiguration.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-07-05 16:30:42 +0200
committerhjk <hjk@qt.io>2023-07-06 05:23:04 +0000
commit135a7682f5e34a1a4789a0c8e803a993f129a54b (patch)
tree176efd3e240dbd19085e4941fadef2264e129e76 /src/plugins/python/pythonrunconfiguration.cpp
parentf02d0354c481f00fc23c92e71afbaf62736912c9 (diff)
ProjectExplorer: Make more aspects directly usable in AspectContainers
Change-Id: I6634c27c8d516411ad84e6cb7c361262ead53124 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/python/pythonrunconfiguration.cpp')
-rw-r--r--src/plugins/python/pythonrunconfiguration.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/python/pythonrunconfiguration.cpp b/src/plugins/python/pythonrunconfiguration.cpp
index 267036e63e2..04210a8b751 100644
--- a/src/plugins/python/pythonrunconfiguration.cpp
+++ b/src/plugins/python/pythonrunconfiguration.cpp
@@ -209,8 +209,10 @@ PythonRunConfiguration::PythonRunConfiguration(Target *target, Id id)
addAspect<TerminalAspect>();
- if (HostOsInfo::isAnyUnixHost())
- addAspect<X11ForwardingAspect>(macroExpander());
+ if (HostOsInfo::isAnyUnixHost()) {
+ auto x11Forwarding = addAspect<X11ForwardingAspect>();
+ x11Forwarding->setMacroExpander(macroExpander());
+ }
setCommandLineGetter([bufferedAspect, interpreterAspect, argumentsAspect, scriptAspect] {
CommandLine cmd{interpreterAspect->currentInterpreter().command};