6868: Tab sequence in Name Editor causes an error

This commit is contained in:
Jérôme Rapinat 2014-01-26 10:35:15 +01:00
parent df40640b17
commit 30a5c27c3d

View File

@ -346,7 +346,8 @@ class SurnameTab(EmbeddedList):
path = self.model.get_path(node).get_indices()[0] path = self.model.get_path(node).get_indices()[0]
nccol = self.curr_col+1 nccol = self.curr_col+1
if nccol < 4: 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,)), self.tree.set_cursor_on_cell(Gtk.TreePath((path,)),
focus_column=self.columns[nccol], focus_column=self.columns[nccol],
focus_cell=None, focus_cell=None,