Skip to content

Commit

Permalink
Hide qmessagebar warnings related to QXcbClipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux authored and nyalldawson committed Feb 10, 2022
1 parent 8c29475 commit 3337016
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ void myMessageOutput( QtMsgType type, const QMessageLogContext &, const QString
* we have no control over and have low value anyway);
* - QtSVG warnings with regards to lack of implementation beyond Tiny SVG 1.2
*/
if ( msg.startsWith( QLatin1String( "libpng warning: iCCP: known incorrect sRGB profile" ), Qt::CaseInsensitive ) ||
if ( msg.contains( QLatin1String( "QXcbClipboard" ), Qt::CaseInsensitive ) ||
msg.startsWith( QLatin1String( "libpng warning: iCCP: known incorrect sRGB profile" ), Qt::CaseInsensitive ) ||
msg.contains( QLatin1String( "Could not add child element to parent element because the types are incorrect" ), Qt::CaseInsensitive ) ||
msg.contains( QLatin1String( "OpenType support missing for" ), Qt::CaseInsensitive ) )
break;
Expand Down

0 comments on commit 3337016

Please sign in to comment.