summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2020-10-30 19:56:48 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2020-10-31 17:39:00 +0100
commit024527e1fa36fbe5f25e0e438d43d11cd15d68de (patch)
treef8879b5228736baabbd1cb082d2aea6365b0a887
parente3f9b6df24ae715147adca7a7503938969bf2405 (diff)
TGA Plugin: don't print warning in QTgaHandler::canRead(QIODevice*)
Since 2878f06e5bd75029f699ce1564144c3a83a8b00e warnings are printed to stdout when a tga file could not be loaded. But canRead(QIODevice*) is called when the image format is not yet known which leads to unexpected warnings. Therefore remove the warning there again. Change-Id: I0ea8cb13b3fb655ed4eeea008a67e26a04e72892 Pick-to: 5.15 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
-rw-r--r--src/plugins/imageformats/tga/qtgahandler.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/imageformats/tga/qtgahandler.cpp b/src/plugins/imageformats/tga/qtgahandler.cpp
index fbac735..53a16d0 100644
--- a/src/plugins/imageformats/tga/qtgahandler.cpp
+++ b/src/plugins/imageformats/tga/qtgahandler.cpp
@@ -86,8 +86,6 @@ bool QTgaHandler::canRead(QIODevice *device)
{
QTgaFile tga(device);
isValid = tga.isValid();
- if (!isValid)
- qWarning("QTgaHandler::canRead(): %s", qPrintable(tga.errorMessage()));
}
device->seek(pos);
return isValid;