From 1e9db6e79e5efdc73bf850879c727665e3d6e149 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 8 Mar 2011 03:34:57 +0100 Subject: revmoed old test stuff --- 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 5d95afc..adda63e 100644 --- a/src/DownloadManager.cpp +++ b/src/DownloadManager.cpp @@ -52,7 +52,6 @@ void DownloadManager::startNextDownload() startNextDownload(); return; } - if (debug) qDebug() << "Saving " << url.toString() << "to " << outfile.fileName(); // If error upon opening, skip this file. if (!outfile.open(QIODevice::WriteOnly)) { @@ -61,6 +60,7 @@ void DownloadManager::startNextDownload() return; } // Start the request for this URL. + if (debug) qDebug() << "Saving " << url.toString() << "to " << outfile.fileName(); QNetworkRequest request(url); currentDownload = qnam->get(request); // TODO: Error handling not working properly... @@ -80,7 +80,7 @@ void DownloadManager::startNextDownload() // ---------------------------------------------------------------------------------------- // This slot listens to readyRead() emmited when data is available for reading. void DownloadManager::downloadReady() -{ +{ // readyRead() fired, so save the readable data. outfile.write(currentDownload->readAll()); } -- cgit v1.2.3-55-g7522