diff options
author | Riho Pihlak <rpihlak@gmail.com> | 2016-04-24 15:28:02 +0300 |
---|---|---|
committer | Riho Pihlak <rpihlak@gmail.com> | 2016-04-25 09:35:29 +0000 |
commit | 26ba9e62f36871c71df8ed54509d22b9c19d0c56 (patch) | |
tree | 6a2e7224e5c6cf5a47675bb4f03ca02c9dc74d3a /src/plugins/updateinfo/updateinfoplugin.cpp | |
parent | 8f33979403a4ca22b41982194103fe90290f54ad (diff) | |
download | qt-creator-26ba9e62f36871c71df8ed54509d22b9c19d0c56.tar.gz |
UpdateInfo: Fix checking for updates
Checking for updates failed when MaintenanceTool printed out log
messages. MaintenanceTool is expected to print out only xml data. So,
parsing the output failed.
MaintenanceTool printed out warnings about SSL and Qt account.
Logging is now disabled when running MaintenanceTool.
Change-Id: Ib163dae81368c8fec7218e5961590e07c208a73e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/updateinfo/updateinfoplugin.cpp')
-rw-r--r-- | src/plugins/updateinfo/updateinfoplugin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/updateinfo/updateinfoplugin.cpp b/src/plugins/updateinfo/updateinfoplugin.cpp index a8c7ea64b9..b6fb7fd21e 100644 --- a/src/plugins/updateinfo/updateinfoplugin.cpp +++ b/src/plugins/updateinfo/updateinfoplugin.cpp @@ -123,7 +123,9 @@ void UpdateInfoPlugin::startCheckForUpdates() { stopCheckForUpdates(); - d->m_checkUpdatesCommand = new ShellCommand(QString(), QProcessEnvironment()); + QProcessEnvironment env; + env.insert("QT_LOGGING_RULES", "*=false"); + d->m_checkUpdatesCommand = new ShellCommand(QString(), env); connect(d->m_checkUpdatesCommand, &ShellCommand::stdOutText, this, &UpdateInfoPlugin::collectCheckForUpdatesOutput); connect(d->m_checkUpdatesCommand, &ShellCommand::finished, this, &UpdateInfoPlugin::checkForUpdatesFinished); d->m_checkUpdatesCommand->addJob(Utils::FileName(QFileInfo(d->m_maintenanceTool)), QStringList(QLatin1String("--checkupdates"))); |