From fba99007756b65885f189098fb39311804d81360 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sat, 13 Dec 2014 19:28:27 +0100 Subject: [PATCH] Fix debug output with Qt 5.4 Qt 5.4 outputs a malformed "QSslSocket: cannot resolve SSLv2_client_method (" message on first SSL connection and it breaks all terminal output. --- src/main/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/main.cpp b/src/main/main.cpp index 0a256c011..070d42efd 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -127,6 +127,9 @@ void msgHandler(QtMsgType type, const char* msg) #else void msgHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg) { + if (msg.startsWith(QL1S("QSslSocket: cannot resolve SSLv2_"))) + return; + QByteArray localMsg = msg.toLocal8Bit(); switch (type) { case QtDebugMsg: