Blame SOURCES/0001-gtweak-tweakmodel.py-Fix-search.patch

006048
From 719fea70382914c297f808abda57addd23d1534a Mon Sep 17 00:00:00 2001
006048
From: Rui Matos <tiagomatos@gmail.com>
006048
Date: Tue, 5 Nov 2013 17:00:21 +0100
006048
Subject: [PATCH] gtweak/tweakmodel.py: Fix search
006048
006048
Return a list instead of a generator since the results are needed more
006048
than once.
006048
---
006048
 gtweak/tweakmodel.py | 2 +-
006048
 1 file changed, 1 insertion(+), 1 deletion(-)
006048
006048
diff --git a/gtweak/tweakmodel.py b/gtweak/tweakmodel.py
006048
index 2e52db7..faa920b 100644
006048
--- a/gtweak/tweakmodel.py
006048
+++ b/gtweak/tweakmodel.py
006048
@@ -179,7 +179,7 @@ class TweakModel(Gtk.ListStore):
006048
         group.set_tweaks(tweak)
006048
       
006048
     def search_matches(self, txt):
006048
-        return (t for t in self.tweaks if t.search_matches(txt))
006048
+        return list(t for t in self.tweaks if t.search_matches(txt))
006048
 
006048
     def get_tweakgroup_iter(self, name):
006048
         return self._tweak_group_iters[name]
006048
-- 
006048
1.8.3.1
006048