diff options
author | Ville Pernu <ville.pernu@nokia.com> | 2010-12-20 07:57:24 (GMT) |
---|---|---|
committer | Ville Pernu <ville.pernu@nokia.com> | 2010-12-20 07:57:24 (GMT) |
commit | de72670c620e1193fa875bf1a4adee553700bacb (patch) | |
tree | 216c4e899548f674bc73faafd6686b6e858be0ba /doc/src/snippets/qstring/stringbuilder.cpp | |
parent | 58123db900c339a7df8fb7f8b24e210fbfb70182 (diff) | |
download | Qt-de72670c620e1193fa875bf1a4adee553700bacb.zip Qt-de72670c620e1193fa875bf1a4adee553700bacb.tar.gz Qt-de72670c620e1193fa875bf1a4adee553700bacb.tar.bz2 |
QNAM HTTP: Fix missing error() signal
During download, if a QAbstractSocket::RemoteHostClosedError occurs, the error handling is deferred to _q_disconnected() slot. However, the error message is not saved for the function, and thus the _q_disconnected only emits a finished-signal.
We now store an unhandled error into a private member. It is handled and reset by the _q_disconnected (or more specifically, allDone-function). Also, an additional check is made that there are no simultaneous HTTP errors. If a HTTP error exists, any socket errors are suppressed.
Task-Number: QT-3494
Reviewed-By: Markus Goetz
Diffstat (limited to 'doc/src/snippets/qstring/stringbuilder.cpp')
0 files changed, 0 insertions, 0 deletions