From bb7214ac5f715c5aa82cbd9736e6f41ab3559968 Mon Sep 17 00:00:00 2001 From: Carson Black Date: Sun, 21 Jul 2019 14:22:29 -0400 Subject: [PATCH] Hide messages --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 52cdbea..c629973 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -28,6 +28,8 @@ void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg) { + return; + QByteArray localMsg = msg.toLocal8Bit(); const char *file = context.file ? context.file : ""; const char *function = context.function ? context.function : ""; @@ -52,7 +54,7 @@ void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QS int main(int argc, char *argv[]) { - // qInstallMessageHandler(myMessageOutput); + qInstallMessageHandler(myMessageOutput); QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QGuiApplication app(argc, argv);