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

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-05-02 19:45:36 +03:00
parent 613fa5d6da
commit 95bb0c054d

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