6868: Tab sequence in Name Editor causes an error

This commit is contained in:
Jérôme Rapinat 2014-01-26 10:36:35 +01:00
parent 3d094d7be1
commit ce6818fae8

View File

@ -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,