diff options
Diffstat (limited to 'src/plugins/fs/search.c')
-rw-r--r-- | src/plugins/fs/search.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c index e282bf1e..f1e8537f 100644 --- a/src/plugins/fs/search.c +++ b/src/plugins/fs/search.c | |||
@@ -339,6 +339,7 @@ fs_search_update (SearchList * searchContext, | |||
339 | unsigned int availability_certainty, | 339 | unsigned int availability_certainty, |
340 | unsigned int applicability_rank) | 340 | unsigned int applicability_rank) |
341 | { | 341 | { |
342 | enum GNUNET_URITRACK_STATE state; | ||
342 | GtkTreeStore *model; | 343 | GtkTreeStore *model; |
343 | GtkTreeIter iter; | 344 | GtkTreeIter iter; |
344 | struct GNUNET_ECRS_URI *have; | 345 | struct GNUNET_ECRS_URI *have; |
@@ -346,6 +347,14 @@ fs_search_update (SearchList * searchContext, | |||
346 | long long rank; | 347 | long long rank; |
347 | unsigned int kwords; | 348 | unsigned int kwords; |
348 | 349 | ||
350 | state = GNUNET_URITRACK_get_state (ectx, cfg, info->uri); | ||
351 | if ((state & (GNUNET_URITRACK_INSERTED | | ||
352 | GNUNET_URITRACK_INDEXED)) && | ||
353 | (GNUNET_YES == GNUNET_GC_get_configuration_value_yesno (cfg, | ||
354 | "GNUNET-GTK", | ||
355 | "DISABLE-OWN", | ||
356 | GNUNET_NO))) | ||
357 | return; | ||
349 | kwords = GNUNET_ECRS_uri_get_keyword_count_from_ksk (searchContext->uri); | 358 | kwords = GNUNET_ECRS_uri_get_keyword_count_from_ksk (searchContext->uri); |
350 | model = GTK_TREE_STORE (gtk_tree_view_get_model (searchContext->treeview)); | 359 | model = GTK_TREE_STORE (gtk_tree_view_get_model (searchContext->treeview)); |
351 | /* find existing entry */ | 360 | /* find existing entry */ |