From 11f0c0254bf262f64ba11b7c4f8cfa72b873d255 Mon Sep 17 00:00:00 2001 From: prculley Date: Sun, 18 Dec 2016 17:37:04 -0600 Subject: [PATCH] bug 9478; fix quick search exception when nothing in searched list --- gramps/gui/widgets/interactivesearchbox.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gui/widgets/interactivesearchbox.py b/gramps/gui/widgets/interactivesearchbox.py index fd013cf19..a3db9ab77 100644 --- a/gramps/gui/widgets/interactivesearchbox.py +++ b/gramps/gui/widgets/interactivesearchbox.py @@ -440,6 +440,8 @@ class InteractiveSearchBox(): search_column = self._treeview.get_search_column() is_tree = not (model.get_flags() & Gtk.TreeModelFlags.LIST_ONLY) while True: + if not cur_iter: # can happen on empty list + return False if (self.search_equal_func(model, search_column, text, cur_iter)): count += 1