fix #94,--debug must be set for debugging messages

v0.6
Michail Vourlakos 8 years ago
parent d12cb8190f
commit bd54e3e8aa

@ -23,6 +23,7 @@
#include <memory>
#include <QApplication>
#include <QDebug>
#include <QQuickWindow>
#include <QCommandLineParser>
#include <QCommandLineOption>
@ -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();
}

Loading…
Cancel
Save