From 57e2e02aed6c022bd7f3cded70cbbe4a51d0981b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 7 May 2016 11:42:09 +0300 Subject: [PATCH] Hide Qt's warning related to the bug 'Assertion when reading an icns file'. (grafted from f3c81ec3f1a0a9a5cc886c44a0bcd7f913f9b34b) --HG-- branch : release --- src/app/valentina/core/vapplication.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/valentina/core/vapplication.cpp b/src/app/valentina/core/vapplication.cpp index c0bd9c5e7..f2355020f 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -87,6 +87,14 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con { 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 // this is another one that doesn't make sense as just a debug message. pretty serious