Comments from r2279

This commit is contained in:
David Sansome 2010-11-23 22:37:00 +00:00
parent 188c7a53ec
commit 8d23c8b3ee
2 changed files with 4 additions and 2 deletions

View File

@ -87,9 +87,10 @@ void IcecastService::LoadDirectory() {
QNetworkReply* reply = network_->get(req); QNetworkReply* reply = network_->get(req);
connect(reply, SIGNAL(finished()), SLOT(DownloadDirectoryFinished())); connect(reply, SIGNAL(finished()), SLOT(DownloadDirectoryFinished()));
if (!load_directory_task_id_) if (!load_directory_task_id_) {
load_directory_task_id_ = model()->task_manager()->StartTask( load_directory_task_id_ = model()->task_manager()->StartTask(
tr("Downloading Icecast directory")); tr("Downloading Icecast directory"));
}
} }
void IcecastService::DownloadDirectoryFinished() { void IcecastService::DownloadDirectoryFinished() {

View File

@ -113,9 +113,10 @@ void JamendoService::DownloadDirectory() {
connect(reply, SIGNAL(downloadProgress(qint64,qint64)), connect(reply, SIGNAL(downloadProgress(qint64,qint64)),
SLOT(DownloadDirectoryProgress(qint64,qint64))); SLOT(DownloadDirectoryProgress(qint64,qint64)));
if (!load_database_task_id_) if (!load_database_task_id_) {
load_database_task_id_ = model()->task_manager()->StartTask( load_database_task_id_ = model()->task_manager()->StartTask(
tr("Downloading Jamendo catalogue")); tr("Downloading Jamendo catalogue"));
}
} }
void JamendoService::DownloadDirectoryProgress(qint64 received, qint64 total) { void JamendoService::DownloadDirectoryProgress(qint64 received, qint64 total) {