diff --git a/src/plugins/imageformats/tga/qtgahandler.cpp b/src/plugins/imageformats/tga/qtgahandler.cpp index fe1b09bc9f472b0cc11954236e54a03a320b4f50..f446db10b35c111bda3f055d44cabec552047483 100644 --- a/src/plugins/imageformats/tga/qtgahandler.cpp +++ b/src/plugins/imageformats/tga/qtgahandler.cpp @@ -80,6 +80,8 @@ bool QTgaHandler::canRead(QIODevice *device) // TGA reader implementation needs a seekable QIODevice, so // sequential devices are not supported + if (device->isSequential()) + return false; qint64 pos = device->pos(); bool isValid; {