From 8ecc25d7b7b58d8400bed291dad062703e83c12e Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 21 May 2003 21:08:20 +0000 Subject: [PATCH] Select child list improvements svn: r1567 --- src/SelectChild.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SelectChild.py b/src/SelectChild.py index 071003d28..2fa43da49 100644 --- a/src/SelectChild.py +++ b/src/SelectChild.py @@ -120,6 +120,7 @@ class SelectChild: def redraw_child_list(self,filter): self.refmodel.clear() + self.refmodel.new_model() bday = self.person.getBirth().getDateObj() dday = self.person.getDeath().getDateObj() @@ -182,12 +183,15 @@ class SelectChild: if self.default_name and ln == self.default_name and not iter: iter = new_iter + self.refmodel.connect_model() + if iter: self.refmodel.selection.select_iter(iter) path = self.refmodel.model.get_path(iter) col = self.add_child.get_column(0) self.add_child.scroll_to_cell(path,col,1,0.5,0.0) + def on_save_child_clicked(self,obj): store,iter = self.refmodel.selection.get_selected()