[dconf-editor] Remove bookmarked search from its own results.



commit bbab4f768a6f6b53b6809ed4fc1fbd0d9fe2637c
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Sep 13 20:29:53 2018 +0200

    Remove bookmarked search from its own results.
    
    Yeah, better do that.

 editor/registry-search.vala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/editor/registry-search.vala b/editor/registry-search.vala
index 4395664..f87e2a0 100644
--- a/editor/registry-search.vala
+++ b/editor/registry-search.vala
@@ -263,7 +263,9 @@ private class RegistrySearch : RegistryList
             SimpleSettingObject? item = (SimpleSettingObject?) list_model.get_item (i);
             if (item == null)
                 assert_not_reached ();
-            if (!(term in ((!) item).name))
+            string name = ((!) item).name;
+            if (!(term in name)
+             || (((!) item).is_search && term == name))
             {
                 post_bookmarks--;
                 post_folders--;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]