From ddf2167b11cabbc614a50bdf277df322ecd02d9b Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 1 Jun 2003 22:48:27 +0000 Subject: [PATCH] Center selection in list after a quick add svn: r1622 --- gramps2/src/AddSpouse.py | 1 + gramps2/src/ChooseParents.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/gramps2/src/AddSpouse.py b/gramps2/src/AddSpouse.py index 174c280cb..a4c086166 100644 --- a/gramps2/src/AddSpouse.py +++ b/gramps2/src/AddSpouse.py @@ -151,6 +151,7 @@ class AddSpouse: """ self.addperson(person) self.update_data(person.getId()) + self.slist.center_selected() def select_spouse_clicked(self,obj): """ diff --git a/gramps2/src/ChooseParents.py b/gramps2/src/ChooseParents.py index 941aba7bf..d358fa208 100644 --- a/gramps2/src/ChooseParents.py +++ b/gramps2/src/ChooseParents.py @@ -414,8 +414,10 @@ class ChooseParents: self.parent_relation_changed(self.prel) elif person.getGender() == RelLib.Person.male: self.fmodel.add(rdata,None,1) + self.fmodel.center_selected() else: self.mmodel.add(rdata,None,1) + self.mmodel.center_selected() self.full_update() def add_parent_clicked(self,obj):