diff options
Diffstat (limited to 'src/ui/function/ProxyConnectionTestThread.cpp')
-rw-r--r-- | src/ui/function/ProxyConnectionTestThread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/function/ProxyConnectionTestThread.cpp b/src/ui/function/ProxyConnectionTestThread.cpp index f644406d..76cf525e 100644 --- a/src/ui/function/ProxyConnectionTestThread.cpp +++ b/src/ui/function/ProxyConnectionTestThread.cpp @@ -43,8 +43,8 @@ void GpgFrontend::UI::ProxyConnectionTestThread::run() { auto _reply = manager->get(url_request); while (_reply->isRunning()) QApplication::processEvents(); - if (_reply->error() != QNetworkReply::NoError && - !_reply->readAll().isEmpty()) { + auto _buffer = _reply->readAll(); + if (_reply->error() == QNetworkReply::NoError && !_buffer.isEmpty()) { result_ = "Reachable"; } else { result_ = "Not Reachable"; |