mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
[NetworkManager] Set default configuration manager
Makes networkAccesibility signals and status working properly.
This commit is contained in:
parent
77abf8493a
commit
0f695b0264
@ -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>)));
|
||||
|
Loading…
Reference in New Issue
Block a user