Hide Qt's warning related to the bug 'Assertion when reading an icns file'.

(grafted from f3c81ec3f1a0a9a5cc886c44a0bcd7f913f9b34b)

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2016-05-07 11:42:09 +03:00
parent 1f1800f8df
commit 57e2e02aed

View File

@ -87,6 +87,14 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con
{ {
type = QtDebugMsg; type = QtDebugMsg;
} }
// Hide Qt bug 'Assertion when reading an icns file'
// https://bugreports.qt.io/browse/QTBUG-45537
// Remove after Qt fix will be released
if ((type == QtWarningMsg) && msg.contains("QICNSHandler::read()"))
{
type = QtDebugMsg;
}
#endif #endif
// this is another one that doesn't make sense as just a debug message. pretty serious // this is another one that doesn't make sense as just a debug message. pretty serious