5112: Fix error when moving empty surname row

svn: r18101
This commit is contained in:
Nick Hall 2011-09-02 20:09:55 +00:00
parent 5f629d221e
commit 33d8ac0fa0
2 changed files with 2 additions and 1 deletions

View File

@ -211,6 +211,7 @@ class SurnameTab(EmbeddedList):
focus_column=self.columns[0],
focus_cell=None,
start_editing=True)
self.update()
def del_button_clicked(self, obj):
"""

View File

@ -204,11 +204,11 @@ class EditPerson(EditPrimary):
self.load_person_image()
self.given.grab_focus()
self._changed_name(None)
self.top.get_object("hboxmultsurnames").pack_start(self.surntab)
if len(self.obj.get_primary_name().get_surname_list()) > 1:
self.multsurnfr.set_size_request(-1,
int(config.get('interface.surname-box-height')))
self.top.get_object("hboxmultsurnames").pack_start(self.surntab)
self.singsurnfr.hide_all()
self.multsurnfr.show_all()
self.singlesurn_active = False