From ac01de32c03155d6bc500af0c9705c1b2dc392be Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Tue, 16 Jun 2020 10:15:47 +0200 Subject: Should fix the build problem for kwiecien --- src/webclient.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/webclient.cpp') 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 &errors) { for(auto const & err : errors) -- cgit v1.2.3