diff options
Diffstat (limited to 'src/networkaccessmanager.cpp')
-rw-r--r-- | src/networkaccessmanager.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/networkaccessmanager.cpp b/src/networkaccessmanager.cpp index 882ae4e1..1c426c61 100644 --- a/src/networkaccessmanager.cpp +++ b/src/networkaccessmanager.cpp @@ -55,11 +55,23 @@ NetworkAccessManager::NetworkAccessManager(QObject *parent) SLOT(authenticationRequired(QNetworkReply*,QAuthenticator*))); connect(this, SIGNAL(proxyAuthenticationRequired(const QNetworkProxy&, QAuthenticator*)), SLOT(proxyAuthenticationRequired(const QNetworkProxy&, QAuthenticator*))); + #ifndef QT_NO_OPENSSL connect(this, SIGNAL(sslErrors(QNetworkReply*, const QList<QSslError>&)), SLOT(sslErrors(QNetworkReply*, const QList<QSslError>&))); #endif + loadSettings(); + +#if QT_VERSION >= 0x040500 + + QNetworkDiskCache *diskCache = new QNetworkDiskCache(this); + QString location = KStandardDirs::locateLocal("cache","",true); + diskCache->setCacheDirectory(location); + setCache(diskCache); + +#endif + } |