summaryrefslogtreecommitdiffstats
path: root/src/DownloadManager.cpp
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-08 03:34:57 +0100
committerJonathan Bauer2011-03-08 03:34:57 +0100
commit1e9db6e79e5efdc73bf850879c727665e3d6e149 (patch)
tree165505b76aee15b55f534fd1c8a1e56e055bdcda /src/DownloadManager.cpp
parentmore (diff)
downloadfbgui-1e9db6e79e5efdc73bf850879c727665e3d6e149.tar.gz
fbgui-1e9db6e79e5efdc73bf850879c727665e3d6e149.tar.xz
fbgui-1e9db6e79e5efdc73bf850879c727665e3d6e149.zip
revmoed old test stuff
Diffstat (limited to 'src/DownloadManager.cpp')
-rw-r--r--src/DownloadManager.cpp4
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());
}