forked from qt-creator/qt-creator
Vcs/Utils: Use Utils::Environment for ShellCommand
Change-Id: Ica289ab2f83d52270923c4ff4983860cfbe0b494 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/infobar.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/synchronousprocess.h>
|
||||
#include <utils/qtcprocess.h>
|
||||
|
||||
#include <QDate>
|
||||
#include <QDomDocument>
|
||||
@@ -129,8 +129,8 @@ void UpdateInfoPlugin::startCheckForUpdates()
|
||||
{
|
||||
stopCheckForUpdates();
|
||||
|
||||
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
|
||||
env.insert(QLatin1String("QT_LOGGING_RULES"), QLatin1String("*=false"));
|
||||
Utils::Environment env = Utils::Environment::systemEnvironment();
|
||||
env.set("QT_LOGGING_RULES", "*=false");
|
||||
d->m_checkUpdatesCommand = new ShellCommand(QString(), env);
|
||||
d->m_checkUpdatesCommand->setDisplayName(tr("Checking for Updates"));
|
||||
connect(d->m_checkUpdatesCommand, &ShellCommand::stdOutText, this, &UpdateInfoPlugin::collectCheckForUpdatesOutput);
|
||||
|
||||
Reference in New Issue
Block a user