From ce884b65787a1447d32d20a5fb317901b1114d39 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 891d5a214..38d9cc6db 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