diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2010-07-01 14:54:47 +0200 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2010-07-01 14:54:47 +0200 |
commit | d1446086855ec1a673b144befff5b707244b998c (patch) | |
tree | c01ed8d94a1d3c66afd7a722d0ef8888144df15c | |
parent | 7f6f20fd30dd989b85dbf132fd06e7e3e850d82c (diff) | |
download | nautilus-d1446086855ec1a673b144befff5b707244b998c.tar.gz |
Don't set has_custom_name for current location bookmark.
So that renaming the relevant location can trigger updates in the
listeners.
-rw-r--r-- | src/nautilus-window-manage-views.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c index 3ec3157fd..82ce5d112 100644 --- a/src/nautilus-window-manage-views.c +++ b/src/nautilus-window-manage-views.c @@ -142,9 +142,9 @@ set_displayed_location (NautilusWindowSlot *slot, GFile *location) g_object_unref (slot->last_location_bookmark); } slot->last_location_bookmark = slot->current_location_bookmark; - name = g_file_get_uri (location); + name = g_file_get_basename (location); slot->current_location_bookmark = (location == NULL) ? NULL - : nautilus_bookmark_new (location, name, TRUE, NULL); + : nautilus_bookmark_new (location, name, FALSE, NULL); g_free (name); } } |