Center selection in list after a quick add

svn: r1622
This commit is contained in:
Don Allingham 2003-06-01 22:48:27 +00:00
parent e1665b524c
commit ddf2167b11
2 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,7 @@ class AddSpouse:
"""
self.addperson(person)
self.update_data(person.getId())
self.slist.center_selected()
def select_spouse_clicked(self,obj):
"""

View File

@ -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):