From 5d74d92c5df4c60734113679b911474c0b7c7a04 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Sat, 1 Feb 2014 10:07:51 +0100 Subject: [PATCH] Initial implementation of password-protected feeds. --- src/core/silentnetworkaccessmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/silentnetworkaccessmanager.cpp b/src/core/silentnetworkaccessmanager.cpp index 42c56073a..6c3cddadf 100644 --- a/src/core/silentnetworkaccessmanager.cpp +++ b/src/core/silentnetworkaccessmanager.cpp @@ -39,10 +39,14 @@ void SilentNetworkAccessManager::onAuthenticationRequired(QNetworkReply *reply, qDebug("Feed '%s' requested authentication and got it.", qPrintable(reply->url().toString())); + + reply->setProperty("authentication-given", true); } else { // Authentication is required but this feed does not contain it. qDebug("Feed '%s' requested authentication but username/password is not available.", qPrintable(reply->url().toString())); + + reply->setProperty("authentication-given", false); } }