Commit cb82c743 authored by Christian Ehrlicher's avatar Christian Ehrlicher Committed by Qt Cherry-pick Bot
Browse files

TGA Plugin: don't print warning in QTgaHandler::canRead(QIODevice*)

Since 2878f06e

 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: default avatarSamuel Gaist <samuel.gaist@idiap.ch>
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@qt.io>
(cherry picked from commit 024527e1

)
Reviewed-by: default avatarQt Cherry-pick Bot <cherrypick_bot@qt-project.org>
parent 5d2b9d7e
No related merge requests found
Showing with 0 additions and 2 deletions
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment