Merge pull request #297 from prculley/bug9478_42
bug 9478; fix quick search exception when nothing in searched list
This commit is contained in:
commit
63ce7383cc
@ -440,6 +440,8 @@ class InteractiveSearchBox():
|
|||||||
search_column = self._treeview.get_search_column()
|
search_column = self._treeview.get_search_column()
|
||||||
is_tree = not (model.get_flags() & Gtk.TreeModelFlags.LIST_ONLY)
|
is_tree = not (model.get_flags() & Gtk.TreeModelFlags.LIST_ONLY)
|
||||||
while True:
|
while True:
|
||||||
|
if not cur_iter: # can happen on empty list
|
||||||
|
return False
|
||||||
if (self.search_equal_func(model, search_column,
|
if (self.search_equal_func(model, search_column,
|
||||||
text, cur_iter)):
|
text, cur_iter)):
|
||||||
count += 1
|
count += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user