diff options
author | Rainer Keller <rainer.keller@digia.com> | 2013-12-11 14:06:32 +0100 |
---|---|---|
committer | Rainer Keller <rainer.keller@digia.com> | 2013-12-11 15:38:26 +0200 |
commit | 94d952e6e963b9736c5e79f4ba9c9c0eb4f5c162 (patch) | |
tree | 773b3278fc9b5d40f9ade9b8fa9a98723e346335 | |
parent | 196ad45ac77a3762a6e41af1cfdd4c28ce4ba299 (diff) |
Let user override default variables
Change-Id: I9b17ccd2a5afd2c4b85142d84c4b63242da00c78
Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
-rw-r--r-- | process.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/process.cpp b/process.cpp index acdaa99..0f7d404 100644 --- a/process.cpp +++ b/process.cpp @@ -185,8 +185,10 @@ void Process::startup(QStringList args) #endif foreach (const QString &key, mConfig.env.keys()) { - qDebug() << key << mConfig.env.value(key); - pe.insert(key, mConfig.env.value(key)); + if (!pe.contains(key)) { + qDebug() << key << mConfig.env.value(key); + pe.insert(key, mConfig.env.value(key)); + } } if (!mConfig.base.isEmpty()) pe.insert(QLatin1String("B2QT_BASE"), mConfig.base); |