diff options
Diffstat (limited to 'src/DownloadManager.cpp')
| -rw-r--r-- | src/DownloadManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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()); } |
