summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-03-01 13:52:02 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-03-01 13:52:02 +0000
commitc7727da19f24a81041563bc8a195531adcf0f628 (patch)
tree5f461231ad247c84c27e55d52c9d50f5a22f1d65
parent05f24a1ec49d63100bf5eaa2d83b5bad4a4f61df (diff)
downloadrockbox-c7727da19f24a81041563bc8a195531adcf0f628.tar.gz
rockbox-c7727da19f24a81041563bc8a195531adcf0f628.zip
httpget class: if a request is cancelled before a response is available give a hint about this instead of returning a nonsense response value.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16463 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--rbutil/rbutilqt/httpget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/httpget.cpp b/rbutil/rbutilqt/httpget.cpp
index 0bf5d966eb..acd8940b77 100644
--- a/rbutil/rbutilqt/httpget.cpp
+++ b/rbutil/rbutilqt/httpget.cpp
@@ -32,6 +32,10 @@ HttpGet::HttpGet(QObject *parent)
32 outputToBuffer = true; 32 outputToBuffer = true;
33 cached = false; 33 cached = false;
34 getRequest = -1; 34 getRequest = -1;
35 // if a request is cancelled before a reponse is available return some
36 // hint about this in the http response instead of nonsense.
37 response = -1;
38
35 connect(&http, SIGNAL(done(bool)), this, SLOT(httpDone(bool))); 39 connect(&http, SIGNAL(done(bool)), this, SLOT(httpDone(bool)));
36 connect(&http, SIGNAL(dataReadProgress(int, int)), this, SLOT(httpProgress(int, int))); 40 connect(&http, SIGNAL(dataReadProgress(int, int)), this, SLOT(httpProgress(int, int)));
37 connect(&http, SIGNAL(requestFinished(int, bool)), this, SLOT(httpFinished(int, bool))); 41 connect(&http, SIGNAL(requestFinished(int, bool)), this, SLOT(httpFinished(int, bool)));