Hide warnings related to QMacCGContext.

This commit is contained in:
Roman Telezhynskyi 2021-06-04 08:50:37 +03:00
parent e40f15ea35
commit 18c0d7454f

View File

@ -104,6 +104,7 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con
} }
# endif # endif
# if QT_VERSION < QT_VERSION_CHECK(5, 9, 0)
// Hide Qt bug 'Assertion when reading an icns file' // Hide Qt bug 'Assertion when reading an icns file'
// https://bugreports.qt.io/browse/QTBUG-45537 // https://bugreports.qt.io/browse/QTBUG-45537
// Remove after Qt fix will be released // Remove after Qt fix will be released
@ -111,6 +112,13 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con
{ {
type = QtDebugMsg; type = QtDebugMsg;
} }
# endif
// Hide anything that starts with QMacCGContext
if ((type == QtWarningMsg) && msg.contains(QStringLiteral("QMacCGContext::")))
{
type = QtDebugMsg;
}
// See issue #568 // See issue #568
if (msg.contains(QStringLiteral("Error receiving trust for a CA certificate"))) if (msg.contains(QStringLiteral("Error receiving trust for a CA certificate")))