summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Pinkham <cpinkham@mythtv.org>2011-01-28 04:49:39 (GMT)
committer Chris Pinkham <cpinkham@mythtv.org>2011-01-28 04:49:39 (GMT)
commitdbbf254388b11657bc26ab0a753991e992416405 (patch)
treede06659ab9c598b3d7928b5b529e8650e02e77e4
parent47b93a95b74d27ba4a5221e99197ac422a62a8f9 (diff)
A couple bugfixes in MythDownloadManager.
Hook up downloadProgress and error signals when we are redirected and have to download a different URL. Fill in a missing arg() for a VERBOSE debug statement.
-rw-r--r--mythtv/libs/libmythbase/mythdownloadmanager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/mythtv/libs/libmythbase/mythdownloadmanager.cpp b/mythtv/libs/libmythbase/mythdownloadmanager.cpp
index d48ca65..a088cec 100644
--- a/mythtv/libs/libmythbase/mythdownloadmanager.cpp
+++ b/mythtv/libs/libmythbase/mythdownloadmanager.cpp
@@ -778,6 +778,11 @@ void MythDownloadManager::downloadFinished(MythDownloadInfo *dlInfo)
m_downloadReplies[dlInfo->m_reply] = dlInfo;
+ connect(dlInfo->m_reply, SIGNAL(error(QNetworkReply::NetworkError)), this,
+ SLOT(downloadError(QNetworkReply::NetworkError)));
+ connect(dlInfo->m_reply, SIGNAL(downloadProgress(qint64, qint64)),
+ this, SLOT(downloadProgress(qint64, qint64)));
+
m_downloadReplies.remove(reply);
reply->deleteLater();
}
@@ -845,7 +850,7 @@ void MythDownloadManager::downloadFinished(MythDownloadInfo *dlInfo)
{
VERBOSE(VB_FILE+VB_EXTRA, QString("downloadFinished(%1): "
"COMPLETE: %2, sending event to caller")
- .arg(dlInfo->m_url));
+ .arg((long long)dlInfo).arg(dlInfo->m_url));
QStringList args;
args << dlInfo->m_url;