diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2020-10-30 19:56:48 +0100 |
---|---|---|
committer | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2020-11-02 12:48:18 +0000 |
commit | 74a5bc4a45195b876454e596e76cb23aeb365410 (patch) | |
tree | f943afada37f12edf1b2160c95fc997b47050cb7 | |
parent | ceaf64a82ea5dc7f37b8cb1865e817ae6deb751e (diff) |
TGA Plugin: don't print warning in QTgaHandler::canRead(QIODevice*)v5.15.2
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: Christian Ehrlicher <ch.ehrlicher@gmx.de>
-rw-r--r-- | src/plugins/imageformats/tga/qtgahandler.cpp | 2 |
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; |