From 18c0d7454f683ef24aa05149eefb22e7b9f462b6 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 4 Jun 2021 08:50:37 +0300 Subject: [PATCH] Hide warnings related to QMacCGContext. --- src/app/puzzle/vpapplication.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/puzzle/vpapplication.cpp b/src/app/puzzle/vpapplication.cpp index d517136b3..27a257872 100644 --- a/src/app/puzzle/vpapplication.cpp +++ b/src/app/puzzle/vpapplication.cpp @@ -104,6 +104,7 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con } # endif +# if QT_VERSION < QT_VERSION_CHECK(5, 9, 0) // Hide Qt bug 'Assertion when reading an icns file' // https://bugreports.qt.io/browse/QTBUG-45537 // Remove after Qt fix will be released @@ -111,6 +112,13 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con { type = QtDebugMsg; } +# endif + + // Hide anything that starts with QMacCGContext + if ((type == QtWarningMsg) && msg.contains(QStringLiteral("QMacCGContext::"))) + { + type = QtDebugMsg; + } // See issue #568 if (msg.contains(QStringLiteral("Error receiving trust for a CA certificate")))