[master 3/8] Remove duplicate entries from search combo boxes

dashea installerbot-noreply at redhat.com
Thu Apr 23 19:57:42 UTC 2015


From: David Shea <dshea at redhat.com>

---
 pyanaconda/ui/gui/spokes/filter.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/filter.py b/pyanaconda/ui/gui/spokes/filter.py
index 26cbbae..83d3499 100644
--- a/pyanaconda/ui/gui/spokes/filter.py
+++ b/pyanaconda/ui/gui/spokes/filter.py
@@ -129,7 +129,7 @@ def setupCombo(self, combo, items):
            repeatedly.  The first item in the list will be selected by default.
         """
         combo.remove_all()
-        for i in sorted(items):
+        for i in sorted(set(items)):
             combo.append_text(i)
 
         if items:


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/bf7441320964e16094d6c8a1a05ff9276cc59c5e


More information about the anaconda-patches mailing list