aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/terminalinterface.cpp
diff options
context:
space:
mode:
authorMarcus Tillmanns <[email protected]>2023-06-13 09:00:09 +0200
committerMarcus Tillmanns <[email protected]>2023-06-14 13:50:13 +0000
commit43862f4cd4ce898a959f8aa0a841674ee079f32c (patch)
tree9f6d29f7afd90fe594f04fd9b095ee8eaaaa3142 /src/libs/utils/terminalinterface.cpp
parent3c2d5452301be5007454e3171c28a59d946048cf (diff)
Terminal: Fix setting environment for stub process
The TerminalInterface was setting the environment of the target process for the stub, this is uneccessary. The ExternalTerminalProcessImpl was not using the environment of the stub process which will be important later. The TerminalProcessImpl was not setting the right environment either. Task-number: QTCREATORBUG-27519 Change-Id: I89238feedd755d1f1cbe2255b71711e0d5c149d0 Reviewed-by: Marcus Tillmanns <[email protected]>
Diffstat (limited to 'src/libs/utils/terminalinterface.cpp')
-rw-r--r--src/libs/utils/terminalinterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/terminalinterface.cpp b/src/libs/utils/terminalinterface.cpp
index 9b6e6457102..cd48de6bc03 100644
--- a/src/libs/utils/terminalinterface.cpp
+++ b/src/libs/utils/terminalinterface.cpp
@@ -384,7 +384,7 @@ void TerminalInterface::start()
QTC_ASSERT(d->stubCreator, return);
- ProcessSetupData stubSetupData = m_setup;
+ ProcessSetupData stubSetupData;
stubSetupData.m_commandLine = cmd;
if (m_setup.m_runAsRoot && !HostOsInfo::isWindowsHost()) {