From 79074587f308d25a990d73073abb8c13d1330bd2 Mon Sep 17 00:00:00 2001 From: prculley Date: Sun, 14 Oct 2018 09:53:53 -0500 Subject: [PATCH] Fix InteractiveSearch for find before model is populated Fixes #10844 --- 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 a3e3ab0d5..dcc185364 100644 --- a/gramps/gui/widgets/interactivesearchbox.py +++ b/gramps/gui/widgets/interactivesearchbox.py @@ -239,6 +239,8 @@ class InteractiveSearchBox: return model = self._treeview.get_model() + if not model: + return selection = self._treeview.get_selection() # disable flush timeout while searching if self._entry_flush_timeout: