mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-23 14:11:44 +01:00
Some refactors.
This commit is contained in:
parent
f645917e77
commit
7c7e6b4e76
@ -26,8 +26,7 @@
|
||||
|
||||
BaseNetworkAccessManager::BaseNetworkAccessManager(QObject *parent)
|
||||
: QNetworkAccessManager(parent) {
|
||||
connect(this, SIGNAL(sslErrors(QNetworkReply*,QList<QSslError>)),
|
||||
this, SLOT(onSslErrors(QNetworkReply*,QList<QSslError>)));
|
||||
connect(this, SIGNAL(sslErrors(QNetworkReply*,QList<QSslError>)), this, SLOT(onSslErrors(QNetworkReply*,QList<QSslError>)));
|
||||
|
||||
loadSettings();
|
||||
}
|
||||
@ -64,11 +63,8 @@ void BaseNetworkAccessManager::loadSettings() {
|
||||
qDebug("Settings of BaseNetworkAccessManager loaded.");
|
||||
}
|
||||
|
||||
void BaseNetworkAccessManager::onSslErrors(QNetworkReply *reply,
|
||||
const QList<QSslError> &error) {
|
||||
qDebug("SSL errors for '%s': '%s' (code %d).", qPrintable(reply->url().toString()),
|
||||
qPrintable(reply->errorString()), (int) reply->error());
|
||||
|
||||
void BaseNetworkAccessManager::onSslErrors(QNetworkReply *reply, const QList<QSslError> &error) {
|
||||
qDebug("SSL errors for '%s': '%s' (code %d).", qPrintable(reply->url().toString()), qPrintable(reply->errorString()), (int) reply->error());
|
||||
reply->ignoreSslErrors(error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user