Bug 554701 – filechooser spams console with useless warnings

svn path=/trunk/; revision=21571
This commit is contained in:
Christian Persch
2008-10-02 19:47:57 +00:00
parent 96b8743e95
commit 60033fd59d
2 changed files with 10 additions and 1 deletions

View File

@ -1304,7 +1304,9 @@ enumerator_files_callback (GObject *source_object,
if (error)
{
g_warning (error->message);
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
g_warning ("%s", error->message);
g_error_free (error);
return;
}