diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2014-05-14 16:12:54 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2014-05-14 16:08:38 +0200 |
commit | 9ab72ac045ea3b258bed792db89af2b6ae99356f (patch) | |
tree | bee6942b0470d818361c62d8fe4f912e5b8d24b6 /src/libs/utils/consoleprocess_unix.cpp | |
parent | ff1b87f0d10d31c69de440821f868101bea98981 (diff) | |
download | qt-creator-9ab72ac045ea3b258bed792db89af2b6ae99356f.tar.gz |
ProcessStub: Preserve the TERM environment variable
* If Creator is not executed from terminal, this value is missing.
* If it is executed from a terminal of another type than the stub
it might be wrong.
Change-Id: Ia6bd1dd59be04e01398ed5cdffff3080539b10ef
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'src/libs/utils/consoleprocess_unix.cpp')
-rw-r--r-- | src/libs/utils/consoleprocess_unix.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/utils/consoleprocess_unix.cpp b/src/libs/utils/consoleprocess_unix.cpp index 05396dac03..1374d06f16 100644 --- a/src/libs/utils/consoleprocess_unix.cpp +++ b/src/libs/utils/consoleprocess_unix.cpp @@ -124,6 +124,7 @@ bool ConsoleProcess::start(const QString &program, const QString &args) return false; } + d->m_environment.unset(QLatin1String("TERM")); QStringList env = d->m_environment.toStringList(); if (!env.isEmpty()) { d->m_tempFile = new QTemporaryFile(); |