diff options
Diffstat (limited to 'src/nautilus-window-manage-views.c')
-rw-r--r-- | src/nautilus-window-manage-views.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c index 06304ce68..2b65ffa46 100644 --- a/src/nautilus-window-manage-views.c +++ b/src/nautilus-window-manage-views.c @@ -463,8 +463,11 @@ viewed_file_changed_callback (NautilusFile *file, } else { new_location = nautilus_file_get_uri (file); - /* if the file was renamed, update location and/or title */ - if (!nautilus_uris_match (new_location, window->details->location)) { + /* if the file was renamed, update location and/or title + * ignore fragments in this comparison, because NautilusFile doesn't track the fragment + * we're currently viewing + */ + if (!nautilus_uris_match_ignore_fragments (new_location, window->details->location)) { g_free (window->details->location); window->details->location = new_location; |