From 33d8ac0fa0b4c5dece8bc893e7cf42f555b5efc6 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Fri, 2 Sep 2011 20:09:55 +0000 Subject: [PATCH] 5112: Fix error when moving empty surname row svn: r18101 --- src/gui/editors/displaytabs/surnametab.py | 1 + src/gui/editors/editperson.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/editors/displaytabs/surnametab.py b/src/gui/editors/displaytabs/surnametab.py index 4794efd16..e5812899c 100644 --- a/src/gui/editors/displaytabs/surnametab.py +++ b/src/gui/editors/displaytabs/surnametab.py @@ -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): """ diff --git a/src/gui/editors/editperson.py b/src/gui/editors/editperson.py index 46071a9b0..d568eb5d3 100644 --- a/src/gui/editors/editperson.py +++ b/src/gui/editors/editperson.py @@ -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