diff --git a/src/app/tape/mapplication.cpp b/src/app/tape/mapplication.cpp index 007e83305..95807c57c 100644 --- a/src/app/tape/mapplication.cpp +++ b/src/app/tape/mapplication.cpp @@ -117,6 +117,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 @@ -124,6 +125,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"))) diff --git a/src/app/valentina/core/vapplication.cpp b/src/app/valentina/core/vapplication.cpp index 36e7c1621..648050fd9 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -114,6 +114,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 @@ -121,6 +122,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")))