aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/bazaar
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2021-05-04 05:54:54 +0200
committerhjk <hjk@qt.io>2021-05-05 12:21:29 +0000
commit793d673f39ffcd40315efe90e898c68c78bb0b0c (patch)
tree18734091d9f7406472772cabc987bb94f38310e4 /src/plugins/bazaar
parentf5aa7bd9a1589aa209dcc694e3199c4de9b72749 (diff)
Vcs/Utils: Use Utils::Environment for ShellCommand
Change-Id: Ica289ab2f83d52270923c4ff4983860cfbe0b494 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/bazaar')
-rw-r--r--src/plugins/bazaar/bazaarplugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/bazaar/bazaarplugin.cpp b/src/plugins/bazaar/bazaarplugin.cpp
index 1d4e78c00e0..3202f8bbcaf 100644
--- a/src/plugins/bazaar/bazaarplugin.cpp
+++ b/src/plugins/bazaar/bazaarplugin.cpp
@@ -939,8 +939,8 @@ Core::ShellCommand *BazaarPluginPrivate::createInitialCheckoutCommand(const QStr
args << m_client.vcsCommandString(BazaarClient::CloneCommand)
<< extraArgs << url << localName;
- QProcessEnvironment env = m_client.processEnvironment();
- env.insert(QLatin1String("BZR_PROGRESS_BAR"), QLatin1String("text"));
+ Environment env = m_client.processEnvironment();
+ env.set("BZR_PROGRESS_BAR", "text");
auto command = new VcsBase::VcsCommand(baseDirectory.toString(), env);
command->addJob({m_client.vcsBinary(), args}, -1);
return command;