diff options
author | Shane Kearns <ext-shane.2.kearns@nokia.com> | 2012-01-31 17:14:22 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-03 15:25:17 +0100 |
commit | f5ddeeca80983ad7579e0b7ba116f0250debdfcd (patch) | |
tree | 67b95f89500a6012eeb20471ce9ace98ac07b6d5 /src/corelib/io/qnoncontiguousbytedevice_p.h | |
parent | e4073fdea521c4b6c36461b51fc16f818c502cc3 (diff) |
Fix progress bar values >100% when http upload is retried
If a http upload (PUT or POST) fails, the IO device is reset
and the upload is retried a second time.
Now we also reset the progress counter in the wrapper class
QNonContigiousByteDevice.
That way the progress bar goes back to 0% and stops at 100%
Previously if the 1st attempt failed at 20%, the progress values
would carry on from 20% and finish at 120%.
Task-number: ou1cimx1#970373
Task-number: QTBUG-23993
Change-Id: Ifc9963595113cf3001ed45f94f525e2305ad479b
Reviewed-by: Markus Goetz <markus@woboq.com>
Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'src/corelib/io/qnoncontiguousbytedevice_p.h')
-rw-r--r-- | src/corelib/io/qnoncontiguousbytedevice_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qnoncontiguousbytedevice_p.h b/src/corelib/io/qnoncontiguousbytedevice_p.h index ded605681e..f4903d3e65 100644 --- a/src/corelib/io/qnoncontiguousbytedevice_p.h +++ b/src/corelib/io/qnoncontiguousbytedevice_p.h @@ -146,7 +146,7 @@ protected: qint64 currentReadBufferSize; qint64 currentReadBufferAmount; qint64 currentReadBufferPosition; - qint64 totalAdvancements; + qint64 totalAdvancements; //progress counter used for emitting the readProgress signal bool eof; qint64 initialPosition; }; |