UpdateInfo: Inherit environment when checking updates

Broken since 26ba9e62f3 (UpdateInfo: Fix
checking for updates)

Change-Id: I89e8346f4cba1cd6b40382e644d3a54aafc959e2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Martin Kampas
2016-11-10 09:30:02 +01:00
committed by Martin Kampas
parent 75303523ef
commit f67b8405a9

View File

@@ -123,7 +123,7 @@ void UpdateInfoPlugin::startCheckForUpdates()
{
stopCheckForUpdates();
QProcessEnvironment env;
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
env.insert(QLatin1String("QT_LOGGING_RULES"), QLatin1String("*=false"));
d->m_checkUpdatesCommand = new ShellCommand(QString(), env);
connect(d->m_checkUpdatesCommand, &ShellCommand::stdOutText, this, &UpdateInfoPlugin::collectCheckForUpdatesOutput);