diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2014-06-24 15:42:47 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@digia.com> | 2014-06-24 17:58:53 +0200 |
commit | 0ca1fc173818c155b3679b76da208fa9a2185ea1 (patch) | |
tree | 3cb232ae7a986a54e9af7130752469cb26906be9 /src/gui | |
parent | 100ed2e91ead45f59639ec6b8aad16e6752818c4 (diff) |
GIF decoding: do not seek() if the image is loaded over the network
This suppresses the warning
QIODevice::seek: Cannot call seek on a sequential device
Task-number: QTBUG-39217
Change-Id: Ie7b0845c760ae6fc857d02bf9ec5c5adb24fb631
Reviewed-by: aavit <eirik.aavitsland@digia.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/image/qgifhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qgifhandler.cpp b/src/gui/image/qgifhandler.cpp index 19b838240f..91588edd50 100644 --- a/src/gui/image/qgifhandler.cpp +++ b/src/gui/image/qgifhandler.cpp @@ -674,7 +674,7 @@ void QGIFFormat::scan(QIODevice *device, QVector<QSize> *imageSizes, int *loopCo return; qint64 oldPos = device->pos(); - if (!device->seek(0)) + if (device->isSequential() || !device->seek(0)) return; int colorCount = 0; |