From 9df74a4de07f08d070e503b5bf4432e7c8c90360 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 10 Mar 2011 01:23:51 +0100 Subject: callback function when download queue is empty --- src/DownloadManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/DownloadManager.cpp') diff --git a/src/DownloadManager.cpp b/src/DownloadManager.cpp index 61be8d0..5c2b123 100644 --- a/src/DownloadManager.cpp +++ b/src/DownloadManager.cpp @@ -59,7 +59,7 @@ void DownloadManager::startNextDownload() if (dlQ.isEmpty()) { emit downloadQueueEmpty(); - if (debug) qDebug() << "Download manager ready."; + if (debug) qDebug() << "Download manager ready. (1)"; return; } if (debug) qDebug() << "Starting next download: " << dlQ.head().toString() @@ -145,7 +145,7 @@ void DownloadManager::downloadFinished() // If queue is empty, we are done. if (dlQ.isEmpty()){ emit downloadQueueEmpty(); - if (debug) qDebug() << "Download manager ready."; + if (debug) qDebug() << "Download manager ready. (2)"; return; } // Queue not empty: initialise next download. -- cgit v1.2.3-55-g7522