[nautilus] search-engine-simple: clear active search before calling finished
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] search-engine-simple: clear active search before calling finished
- Date: Mon, 15 Oct 2012 14:04:08 +0000 (UTC)
commit 9967669927d9a9d79f08f756a26090384cfb4631
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Oct 14 13:35:51 2012 -0400
search-engine-simple: clear active search before calling finished
So that start() will work if called directly from the finished callback.
.../nautilus-search-engine-simple.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/libnautilus-private/nautilus-search-engine-simple.c b/libnautilus-private/nautilus-search-engine-simple.c
index 4e7a8f7..453ff12 100644
--- a/libnautilus-private/nautilus-search-engine-simple.c
+++ b/libnautilus-private/nautilus-search-engine-simple.c
@@ -134,12 +134,13 @@ static gboolean
search_thread_done_idle (gpointer user_data)
{
SearchThreadData *data = user_data;
+ NautilusSearchEngineSimple *engine = data->engine;
+
+ engine->details->active_search = NULL;
+ nautilus_search_provider_finished (NAUTILUS_SEARCH_PROVIDER (engine));
- nautilus_search_provider_finished (NAUTILUS_SEARCH_PROVIDER (data->engine));
- data->engine->details->active_search = NULL;
-
search_thread_data_free (data);
-
+
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]