Center selection in list after a quick add
svn: r1622
This commit is contained in:
parent
e1665b524c
commit
ddf2167b11
@ -151,6 +151,7 @@ class AddSpouse:
|
||||
"""
|
||||
self.addperson(person)
|
||||
self.update_data(person.getId())
|
||||
self.slist.center_selected()
|
||||
|
||||
def select_spouse_clicked(self,obj):
|
||||
"""
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user