Skip to content

Commit

Permalink
Fix #8411
Browse files Browse the repository at this point in the history
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 ee26898
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/app/main.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit ee26898

Please sign in to comment.