Skip to content

Commit

Permalink
A couple bugfixes in MythDownloadManager.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cpinkham committed Jan 28, 2011
1 parent 47b93a9 commit dbbf254
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mythtv/libs/libmythbase/mythdownloadmanager.cpp
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit dbbf254

Please sign in to comment.