diff options
author | Saturneric <[email protected]> | 2022-01-04 15:49:00 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-01-04 15:49:00 +0000 |
commit | 952d0424ab1a130d4365bd9995b03a9fc1ddd81b (patch) | |
tree | 4c5e5d3b7b41a3e3ac1da007c47a0189e0e1df0f /src/ui/function/ProxyConnectionTestThread.cpp | |
parent | <feature, fix, refactor>(core, ui): fixed known bugs for v2.0.4-beta.1 and ad... (diff) | |
download | GpgFrontend-952d0424ab1a130d4365bd9995b03a9fc1ddd81b.tar.gz GpgFrontend-952d0424ab1a130d4365bd9995b03a9fc1ddd81b.zip |
<fix, refactor>(core, ui): fixed known bugs for v2.0.4-beta.1.
1. fixed proxy settings ui.
2. fixed send mail settings ui.
3. fixed uncaught exception handling.
Diffstat (limited to '')
-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"; |