Some refactors.
This commit is contained in:
parent
f645917e77
commit
7c7e6b4e76
1 changed files with 3 additions and 7 deletions
|
@ -26,8 +26,7 @@
|
||||||
|
|
||||||
BaseNetworkAccessManager::BaseNetworkAccessManager(QObject *parent)
|
BaseNetworkAccessManager::BaseNetworkAccessManager(QObject *parent)
|
||||||
: QNetworkAccessManager(parent) {
|
: QNetworkAccessManager(parent) {
|
||||||
connect(this, SIGNAL(sslErrors(QNetworkReply*,QList<QSslError>)),
|
connect(this, SIGNAL(sslErrors(QNetworkReply*,QList<QSslError>)), this, SLOT(onSslErrors(QNetworkReply*,QList<QSslError>)));
|
||||||
this, SLOT(onSslErrors(QNetworkReply*,QList<QSslError>)));
|
|
||||||
|
|
||||||
loadSettings();
|
loadSettings();
|
||||||
}
|
}
|
||||||
|
@ -64,11 +63,8 @@ void BaseNetworkAccessManager::loadSettings() {
|
||||||
qDebug("Settings of BaseNetworkAccessManager loaded.");
|
qDebug("Settings of BaseNetworkAccessManager loaded.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseNetworkAccessManager::onSslErrors(QNetworkReply *reply,
|
void BaseNetworkAccessManager::onSslErrors(QNetworkReply *reply, const QList<QSslError> &error) {
|
||||||
const QList<QSslError> &error) {
|
qDebug("SSL errors for '%s': '%s' (code %d).", qPrintable(reply->url().toString()), qPrintable(reply->errorString()), (int) reply->error());
|
||||||
qDebug("SSL errors for '%s': '%s' (code %d).", qPrintable(reply->url().toString()),
|
|
||||||
qPrintable(reply->errorString()), (int) reply->error());
|
|
||||||
|
|
||||||
reply->ignoreSslErrors(error);
|
reply->ignoreSslErrors(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue