From 30a5c27c3d923e737eef83ae5529e4c6057cd219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sun, 26 Jan 2014 10:35:15 +0100 Subject: [PATCH] 6868: Tab sequence in Name Editor causes an error --- gramps/gui/editors/displaytabs/surnametab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gui/editors/displaytabs/surnametab.py b/gramps/gui/editors/displaytabs/surnametab.py index 166d7bac0..f2ac49dbe 100644 --- a/gramps/gui/editors/displaytabs/surnametab.py +++ b/gramps/gui/editors/displaytabs/surnametab.py @@ -346,7 +346,8 @@ class SurnameTab(EmbeddedList): path = self.model.get_path(node).get_indices()[0] nccol = self.curr_col+1 if nccol < 4: - self.curr_celle.editing_done() + if self.curr_celle: + self.curr_celle.editing_done() self.tree.set_cursor_on_cell(Gtk.TreePath((path,)), focus_column=self.columns[nccol], focus_cell=None,