summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/imageformats/tga/qtgahandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/imageformats/tga/qtgahandler.cpp b/src/plugins/imageformats/tga/qtgahandler.cpp
index fe1b09b..f446db1 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;
{