Skip to content
Permalink
Browse files

Fix #8411

Suppress warnings for setNamedColour.
Warnings reneder composer unusable on windows, even for testing reasons.
  • Loading branch information
NathanW2 committed Aug 8, 2013
1 parent d821bcc commit ee268984de32d631ee5cd57dd895dc8d8977000e
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/app/main.cpp
@@ -336,8 +336,14 @@ void myMessageOutput( QtMsgType type, const char *msg )
myPrint( "Warning: %s\n", msg );

#ifdef QGISDEBUG
dumpBacktrace( 20 );
QgsMessageLog::logMessage( msg, "Qt" );
// Print all warnings except setNamedColor.
// Only seems to happen on windows
if ( 0 != strncmp( msg, "QColor::setNamedColor:", 22 ) )
{
// TODO: Verify this code in action.
dumpBacktrace( 20 );
QgsMessageLog::logMessage( msg, "Qt" );
}
#endif

// TODO: Verify this code in action.

0 comments on commit ee26898

Please sign in to comment.
You can’t perform that action at this time.