From f3c80389216893ae3720447b5af3d7d9ba6159ca Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Mon, 5 Aug 2024 16:41:01 +0200 Subject: [PATCH] forward the redirected signal from QNetworkReply to detect them Signed-off-by: Matthieu Gallien --- src/libsync/abstractnetworkjob.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsync/abstractnetworkjob.cpp b/src/libsync/abstractnetworkjob.cpp index c89dcefe831f8..99ec1012dcb05 100644 --- a/src/libsync/abstractnetworkjob.cpp +++ b/src/libsync/abstractnetworkjob.cpp @@ -116,6 +116,7 @@ void AbstractNetworkJob::setupConnections(QNetworkReply *reply) connect(reply, &QNetworkReply::metaDataChanged, this, &AbstractNetworkJob::networkActivity); connect(reply, &QNetworkReply::downloadProgress, this, &AbstractNetworkJob::networkActivity); connect(reply, &QNetworkReply::uploadProgress, this, &AbstractNetworkJob::networkActivity); + connect(reply, &QNetworkReply::redirected, this, [reply, this] (const QUrl &url) { emit redirected(reply, url, 0);}); } QNetworkReply *AbstractNetworkJob::addTimer(QNetworkReply *reply)