From b2df9170116257fd333aa35d16dcceb8bffb5c3a Mon Sep 17 00:00:00 2001 From: Gabriele Date: Wed, 5 Aug 2015 21:33:17 +0200 Subject: [PATCH] DownloadManager: fix downloads after a redirection Closes #3580. --- src/core/net/downloadhandler.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/net/downloadhandler.cpp b/src/core/net/downloadhandler.cpp index 9b86dc54b..d51155aef 100644 --- a/src/core/net/downloadhandler.cpp +++ b/src/core/net/downloadhandler.cpp @@ -188,12 +188,9 @@ void DownloadHandler::handleRedirection(QUrl newUrl) this->deleteLater(); } else { - DownloadHandler *tmp = m_manager->downloadUrl(newUrlString, m_sizeLimit); + DownloadHandler *tmp = m_manager->downloadUrl(newUrlString, m_saveToFile, m_sizeLimit, m_handleRedirectToMagnet); m_reply->deleteLater(); m_reply = tmp->m_reply; - m_saveToFile = tmp->m_saveToFile; - m_sizeLimit = tmp->m_sizeLimit; - m_handleRedirectToMagnet = tmp->m_handleRedirectToMagnet; init(); tmp->m_reply = 0; delete tmp;