From 25359d55b588b57ddd14d51f80a69def8597e99f Mon Sep 17 00:00:00 2001 From: sudden6 Date: Sat, 30 Jan 2016 00:15:14 +0100 Subject: [PATCH] Fix proxy set only after request sent. --- src/net/autoupdate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/autoupdate.cpp b/src/net/autoupdate.cpp index fe40ea143..eb13952ea 100644 --- a/src/net/autoupdate.cpp +++ b/src/net/autoupdate.cpp @@ -107,8 +107,8 @@ AutoUpdater::VersionInfo AutoUpdater::getUpdateVersion() return versionInfo; QNetworkAccessManager *manager = new QNetworkAccessManager; - QNetworkReply* reply = manager->get(QNetworkRequest(QUrl(checkURI))); manager->setProxy(Settings::getInstance().getProxy()); + QNetworkReply* reply = manager->get(QNetworkRequest(QUrl(checkURI))); while (!reply->isFinished()) { if (abortFlag) @@ -222,8 +222,8 @@ QByteArray AutoUpdater::getUpdateFlist() QByteArray flist; QNetworkAccessManager *manager = new QNetworkAccessManager; - QNetworkReply* reply = manager->get(QNetworkRequest(QUrl(flistURI))); manager->setProxy(Settings::getInstance().getProxy()); + QNetworkReply* reply = manager->get(QNetworkRequest(QUrl(flistURI))); while (!reply->isFinished()) { if (abortFlag)