places view: Spew less warnings

When running the testsuite with a local gvfs, we get a 'not supported'
error here, and the g_warning makes the test fail. Avoid that.
This commit is contained in:
Matthias Clasen 2015-09-02 01:28:57 -04:00
parent b4da542980
commit 6a4e4a9fe8

View File

@ -1002,7 +1002,8 @@ network_enumeration_finished (GObject *source_object,
if (error)
{
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) &&
!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
g_warning ("Failed to fetch network locations: %s", error->message);
g_clear_error (&error);