diff options
Diffstat (limited to 'SQLiteStudio3/guiSQLiteStudio/uidebug.cpp')
| -rw-r--r-- | SQLiteStudio3/guiSQLiteStudio/uidebug.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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); } |
