5112: Fix error when moving empty surname row
svn: r18102
This commit is contained in:
parent
24900750a9
commit
6004f5ee22
@ -211,6 +211,7 @@ class SurnameTab(EmbeddedList):
|
|||||||
focus_column=self.columns[0],
|
focus_column=self.columns[0],
|
||||||
focus_cell=None,
|
focus_cell=None,
|
||||||
start_editing=True)
|
start_editing=True)
|
||||||
|
self.update()
|
||||||
|
|
||||||
def del_button_clicked(self, obj):
|
def del_button_clicked(self, obj):
|
||||||
"""
|
"""
|
||||||
|
@ -204,11 +204,11 @@ class EditPerson(EditPrimary):
|
|||||||
self.load_person_image()
|
self.load_person_image()
|
||||||
self.given.grab_focus()
|
self.given.grab_focus()
|
||||||
self._changed_name(None)
|
self._changed_name(None)
|
||||||
|
self.top.get_object("hboxmultsurnames").pack_start(self.surntab)
|
||||||
|
|
||||||
if len(self.obj.get_primary_name().get_surname_list()) > 1:
|
if len(self.obj.get_primary_name().get_surname_list()) > 1:
|
||||||
self.multsurnfr.set_size_request(-1,
|
self.multsurnfr.set_size_request(-1,
|
||||||
int(config.get('interface.surname-box-height')))
|
int(config.get('interface.surname-box-height')))
|
||||||
self.top.get_object("hboxmultsurnames").pack_start(self.surntab)
|
|
||||||
self.singsurnfr.hide_all()
|
self.singsurnfr.hide_all()
|
||||||
self.multsurnfr.show_all()
|
self.multsurnfr.show_all()
|
||||||
self.singlesurn_active = False
|
self.singlesurn_active = False
|
||||||
|
Loading…
Reference in New Issue
Block a user