diff options
author | Carlos Soriano <csoriano@gnome.org> | 2015-08-20 22:16:20 +0200 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2015-08-20 17:39:05 -0300 |
commit | 94fd7f94e3ddef5ee3ef58d06cc2f5c71f16676a (patch) | |
tree | 8fee27fd91275034796e24dc78e0f21a3c5035cb | |
parent | 404f1492dbe03b407abd4ca0c2b743f7810f4b3e (diff) | |
download | nautilus-94fd7f94e3ddef5ee3ef58d06cc2f5c71f16676a.tar.gz |
window-slot: use g_error_matches
And add a comment to track this...
https://bugzilla.gnome.org/show_bug.cgi?id=753871
-rw-r--r-- | src/nautilus-window-slot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c index 128730865..88d0cfe9a 100644 --- a/src/nautilus-window-slot.c +++ b/src/nautilus-window-slot.c @@ -1215,7 +1215,8 @@ got_file_info_for_view_selection_callback (NautilusFile *file, view = NULL; - if (!error || (error && error->domain == G_IO_ERROR && error->code == G_IO_ERROR_NOT_SUPPORTED)) { + /* why do we accept ERROR_NOT_SUPPORTED? */ + if (!error || g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED)) { view = nautilus_window_slot_get_view_for_location (slot, location); } |