diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-10-19 16:38:49 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-10-19 16:38:49 -0400 |
commit | c6b1cdd1754432d98d35cd7256a2477a45d40630 (patch) | |
tree | 84bde6b649454bb6dd9f7dae30ba35d330343681 | |
parent | 9a122cb3aa4f85548ff036ea3e6509e0e60387f8 (diff) | |
download | nautilus-c6b1cdd1754432d98d35cd7256a2477a45d40630.tar.gz |
places-sidebar: always add non-native bookmarks
-rw-r--r-- | src/nautilus-places-sidebar.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c index 10182a71c..55883e07d 100644 --- a/src/nautilus-places-sidebar.c +++ b/src/nautilus-places-sidebar.c @@ -753,12 +753,13 @@ update_places (NautilusPlacesSidebar *sidebar) for (index = 0; index < bookmark_count; ++index) { bookmark = nautilus_bookmark_list_item_at (sidebar->bookmarks, index); + root = nautilus_bookmark_get_location (bookmark); - if (!nautilus_bookmark_get_exists (bookmark)) { + if (!nautilus_bookmark_get_exists (bookmark) && g_file_is_native (root)) { + g_object_unref (root); continue; } - root = nautilus_bookmark_get_location (bookmark); file = nautilus_file_get (root); if (is_built_in_bookmark (file)) { |