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: