summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2020-10-30 19:56:48 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-10-31 18:12:28 +0000
commitcb82c74310837fe4e832c8ab72176a5d63e4355f (patch)
tree7be1b0920b8e3d885db9e312da20d059cf101f6a /src
parent5d2b9d7ef5af8296b93a006c5011778772db04b3 (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 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> (cherry picked from commit 024527e1fa36fbe5f25e0e438d43d11cd15d68de) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-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;