1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

[NetworkManager] Set default configuration manager

Makes networkAccesibility signals and status working properly.
This commit is contained in:
nowrep 2013-05-27 19:22:01 +02:00
parent 77abf8493a
commit 0f695b0264

View File

@ -36,6 +36,7 @@
#include "schemehandlers/fileschemehandler.h"
#include "schemehandlers/ftpschemehandler.h"
#include <QNetworkConfigurationManager>
#include <QFormLayout>
#include <QLabel>
#include <QLineEdit>
@ -70,6 +71,10 @@ NetworkManager::NetworkManager(QObject* parent)
, m_adblockManager(0)
, m_ignoreAllWarnings(false)
{
// Setting default configuration manager makes networkAccesibility working
QNetworkConfigurationManager manager;
setConfiguration(manager.defaultConfiguration());
connect(this, SIGNAL(authenticationRequired(QNetworkReply*,QAuthenticator*)), this, SLOT(authentication(QNetworkReply*,QAuthenticator*)));
connect(this, SIGNAL(proxyAuthenticationRequired(QNetworkProxy,QAuthenticator*)), this, SLOT(proxyAuthentication(QNetworkProxy,QAuthenticator*)));
connect(this, SIGNAL(sslErrors(QNetworkReply*,QList<QSslError>)), this, SLOT(sslError(QNetworkReply*,QList<QSslError>)));