diff --git a/app/main.cpp b/app/main.cpp index 1d156430c..c0344ce38 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -23,6 +23,7 @@ #include #include +#include #include #include #include @@ -41,6 +42,13 @@ static const char version[] = "0.1"; +void noMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg) +{ + Q_UNUSED(type); + Q_UNUSED(context); + Q_UNUSED(msg); +} + int main(int argc, char **argv) { QQuickWindow::setDefaultAlphaBuffer(true); @@ -60,7 +68,14 @@ int main(int argc, char **argv) CICYAN " - " CNORMAL "%{message}" CIRED "%{if-fatal}\n%{backtrace depth=8 separator=\"\n\"}%{endif}" "%{if-critical}\n%{backtrace depth=8 separator=\"\n\"}%{endif}" CNORMAL)); + // qputenv("QT_QUICK_CONTROLS_1_STYLE", "Desktop"); + if (!app.arguments().contains(QLatin1String("--debug"))) { + qInstallMessageHandler(noMessageOutput); + } + Latte::DockCorona corona; return app.exec(); + + }