6716: Add extra surname, on tab away from field, value is not stored

svn: r22253
This commit is contained in:
Benny Malengier 2013-05-11 12:07:02 +00:00
parent 9e757e2249
commit 7edd984b91

View File

@ -346,6 +346,7 @@ 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()
self.tree.set_cursor_on_cell(Gtk.TreePath((path,)),
focus_column=self.columns[nccol],
focus_cell=None,
@ -354,6 +355,7 @@ class SurnameTab(EmbeddedList):
#go to next line if there is one
if path < len(self.obj.get_surname_list()):
newpath = Gtk.TreePath((path+1,))
self.curr_celle.editing_done()
self.selection.select_path(newpath)
self.tree.set_cursor_on_cell(newpath,
focus_column=self.columns[0],