summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2015-07-22 11:28:00 +0200
committerCarlos Soriano <csoriano@gnome.org>2015-07-22 13:02:04 +0200
commit0ec4d68043ebbfd506212663736c45a2b4cd96ac (patch)
tree418550502828322aba4271306e0a42915407523b
parent39fe811cf6b6d512495bad42211e693eff54eccd (diff)
downloadnautilus-0ec4d68043ebbfd506212663736c45a2b4cd96ac.tar.gz
search-directory: make clear when pending callbacks are connected
-rw-r--r--libnautilus-private/nautilus-search-directory.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libnautilus-private/nautilus-search-directory.c b/libnautilus-private/nautilus-search-directory.c
index e8acd851a..4810b50d5 100644
--- a/libnautilus-private/nautilus-search-directory.c
+++ b/libnautilus-private/nautilus-search-directory.c
@@ -440,9 +440,9 @@ search_call_when_ready (NautilusDirectory *directory,
if (wait_for_file_list && !search->details->search_loaded) {
/* Add it to the pending callback list, which will be
- * processed when the directory has finished loading
- */
- search->details->pending_callback_list =
+ * processed when the directory has valid data from the new
+ * search and all data and signals from previous searchs is removed. */
+ search->details->pending_callback_list =
g_list_prepend (search->details->pending_callback_list, search_callback);
/* We might need to start the search engine */