From 0ec4d68043ebbfd506212663736c45a2b4cd96ac Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Wed, 22 Jul 2015 11:28:00 +0200 Subject: search-directory: make clear when pending callbacks are connected --- libnautilus-private/nautilus-search-directory.c | 6 +++--- 1 file 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 */ -- cgit v1.2.1