From: Mattia Basaglia Date: Tue, 28 Jul 2015 10:49:09 +0000 (+0200) Subject: Don't show a dialog for Gdk errors X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c707b5fbce1e04df25efc1f2c5d478a98b4bdee5;p=xonotic%2Fnetradiant.git Don't show a dialog for Gdk errors --- 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 )