aboutsummaryrefslogtreecommitdiff
path: root/src/webclient.cpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-16 10:15:47 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-16 10:15:47 +0200
commitac01de32c03155d6bc500af0c9705c1b2dc392be (patch)
tree8e68f5258d8419040f94dd080f9ecd59f276fa14 /src/webclient.cpp
parent33c91102a58e2fbcf9d7a66e33b41a65fa3f0e0c (diff)
downloadkristall-ac01de32c03155d6bc500af0c9705c1b2dc392be.tar.gz
Should fix the build problem for kwiecien
Diffstat (limited to 'src/webclient.cpp')
-rw-r--r--src/webclient.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/webclient.cpp b/src/webclient.cpp
index d73842b..eb5f85e 100644
--- a/src/webclient.cpp
+++ b/src/webclient.cpp
@@ -35,7 +35,6 @@ bool WebClient::startRequest(const QUrl &url)
connect(this->current_reply, &QNetworkReply::readyRead, this, &WebClient::on_data);
connect(this->current_reply, &QNetworkReply::finished, this, &WebClient::on_finished);
- connect(this->current_reply, &QNetworkReply::errorOccurred, this, &WebClient::on_networkError);
connect(this->current_reply, &QNetworkReply::sslErrors, this, &WebClient::on_sslErrors);
return true;
@@ -67,6 +66,7 @@ void WebClient::on_finished()
{
if(this->current_reply->error() != QNetworkReply::NoError)
{
+ qDebug() << "web network error" << this->current_reply->errorString();
emit this->requestFailed(this->current_reply->errorString());
}
else
@@ -83,11 +83,6 @@ void WebClient::on_finished()
this->current_reply = nullptr;
}
-void WebClient::on_networkError(QNetworkReply::NetworkError code)
-{
- qDebug() << code << this->current_reply->errorString();
-}
-
void WebClient::on_sslErrors(const QList<QSslError> &errors)
{
for(auto const & err : errors)