summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Srba <kuba.srba@gmail.com>2014-08-05 09:39:48 +0200
committerCarlos Soriano <csoriano@gnome.org>2015-03-02 00:15:49 +0100
commit0c7ee219c440de89aae492a8bab400c92f038478 (patch)
treea8734b532a4f1af5ba82683f28525c8f8e0c7622
parent90e2e7d70abef02e40b3d4a28cd499bb1167fd9a (diff)
downloadnautilus-0c7ee219c440de89aae492a8bab400c92f038478.tar.gz
Update window title when a search string is updated
nautilus_window_slot_set_location updates window slot title only when a directory is changed. This is OK when going through the directory structure. But when a search is started, "search" directory is created with some name (create_new_search) and this name is updated as the search is updated (sync_search_directory) - but the location instance remains the same until the search is finished. Thus we need to update the title even if the location remains the same. https://bugzilla.gnome.org/show_bug.cgi?id=698767
-rw-r--r--src/nautilus-window-slot.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 18242b63c..2e0d09fd1 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -975,6 +975,10 @@ nautilus_window_slot_set_location (NautilusWindowSlot *slot,
if (slot->details->location &&
g_file_equal (location, slot->details->location)) {
+ /* The location name could be updated even if the location
+ * wasn't changed. This is the case for a search.
+ */
+ nautilus_window_slot_update_title (slot);
return;
}