From a308f430f694423064ebc86fd0506c8c6fdb3d93 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sun, 19 Apr 2015 22:30:21 -0400 Subject: Imported Upstream version 3.0.5 --- SQLiteStudio3/guiSQLiteStudio/uidebug.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'SQLiteStudio3/guiSQLiteStudio/uidebug.cpp') diff --git a/SQLiteStudio3/guiSQLiteStudio/uidebug.cpp b/SQLiteStudio3/guiSQLiteStudio/uidebug.cpp index 00aaac4..a2ce9f8 100644 --- a/SQLiteStudio3/guiSQLiteStudio/uidebug.cpp +++ b/SQLiteStudio3/guiSQLiteStudio/uidebug.cpp @@ -12,6 +12,8 @@ bool UI_DEBUG_ENABLED = false; bool UI_DEBUG_CONSOLE = true; QString UI_DEBUG_FILE; +QStringList MsgHandlerThreadProxy::ignoredWarnings; + void uiMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg) { if (!UI_DEBUG_ENABLED) @@ -100,6 +102,9 @@ MsgHandlerThreadProxy::~MsgHandlerThreadProxy() void MsgHandlerThreadProxy::init() { + ignoredWarnings << QStringLiteral("libpng warning: Unknown iTXt compression type or method"); + ignoredWarnings << QStringLiteral("QPainter::font: Painter not active"); + if (sqliteStudioUiDebugConsole) { connect(this, SIGNAL(debugRequested(QString)), sqliteStudioUiDebugConsole, SLOT(debug(QString))); @@ -139,6 +144,9 @@ void MsgHandlerThreadProxy::debug(const QString &msg) void MsgHandlerThreadProxy::warn(const QString &msg) { + if (ignoredWarnings.contains(msg.mid(25))) + return; + emit warnRequested(msg); } -- cgit v1.2.3