Skip to content

Commit ee26898

Browse files
committed
Fix #8411
Suppress warnings for setNamedColour. Warnings reneder composer unusable on windows, even for testing reasons.
1 parent d821bcc commit ee26898

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/app/main.cpp

+8-2
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,14 @@ void myMessageOutput( QtMsgType type, const char *msg )
336336
myPrint( "Warning: %s\n", msg );
337337

338338
#ifdef QGISDEBUG
339-
dumpBacktrace( 20 );
340-
QgsMessageLog::logMessage( msg, "Qt" );
339+
// Print all warnings except setNamedColor.
340+
// Only seems to happen on windows
341+
if ( 0 != strncmp( msg, "QColor::setNamedColor:", 22 ) )
342+
{
343+
// TODO: Verify this code in action.
344+
dumpBacktrace( 20 );
345+
QgsMessageLog::logMessage( msg, "Qt" );
346+
}
341347
#endif
342348

343349
// TODO: Verify this code in action.

0 commit comments

Comments
 (0)