Skip to content

Commit 7b1c930

Browse files
Suppress SSL certificate warning in Mac OS X
1 parent a63e37c commit 7b1c930

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

main.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ void messageLogger(QtMsgType type, const QMessageLogContext &context, const QStr
1212
{
1313
QString formattedMsg = qFormatLogMessage(type, context, msg);
1414

15+
#if defined(Q_OS_MAC)
16+
// Odd bug in Qt, best to make it a debug message so it doesnt annoy the user
17+
if (type == QtWarningMsg && msg.contains(QStringLiteral("Error receiving trust for a CA certificate")))
18+
{
19+
type = QtDebugMsg;
20+
}
21+
#endif
22+
1523
// Open the log file and write the formatted log message
1624
QTextStream out(logFh, QIODevice::WriteOnly);
1725
out << formattedMsg << endl;

0 commit comments

Comments
 (0)