background: Don't show an error if no cache dir

We don't want to see errors if the directory doesn't exist.
This commit is contained in:
Bastien Nocera 2011-02-14 11:07:04 +00:00
parent 9ac7a0aa32
commit 2866a70f6a

View file

@ -254,7 +254,8 @@ dir_enum_async_ready (GObject *source,
if (err)
{
g_warning ("Could not fill pictures source: %s", err->message);
if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_NOT_FOUND) == FALSE)
g_warning ("Could not fill pictures source: %s", err->message);
g_error_free (err);
return;
}