From c707b5fbce1e04df25efc1f2c5d478a98b4bdee5 Mon Sep 17 00:00:00 2001 From: Mattia Basaglia Date: Tue, 28 Jul 2015 12:49:09 +0200 Subject: [PATCH] Don't show a dialog for Gdk errors --- radiant/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/radiant/main.cpp b/radiant/main.cpp index 78d10c89..aa0a1bfd 100644 --- a/radiant/main.cpp +++ b/radiant/main.cpp @@ -208,11 +208,15 @@ void error_redirect( const gchar *domain, GLogLevelFlags log_level, const gchar // spam it... globalErrorStream() << buf << "\n"; + bool worth_showing = strcmp(domain,"Gdk") != 0; + // FIXME why are warnings is_fatal? #ifndef _DEBUG - if ( is_fatal ) + worth_showing = worth_showing && is_fatal; #endif - ERROR_MESSAGE( "GTK+ error: " << buf ); + + if ( worth_showing ) + ERROR_MESSAGE( "GTK+ error: " << buf ); } #if defined ( _DEBUG ) && defined ( WIN32 ) && defined ( _MSC_VER ) -- 2.39.2