From 8c05f90b0d0a7cb8b481060ecceb312783bb0341 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 26 Nov 2006 22:05:35 +0000 Subject: [PATCH] svn: r7711 --- gramps2/src/Editors/_EditPerson.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gramps2/src/Editors/_EditPerson.py b/gramps2/src/Editors/_EditPerson.py index cb2f64fd7..3d0d6a0fe 100644 --- a/gramps2/src/Editors/_EditPerson.py +++ b/gramps2/src/Editors/_EditPerson.py @@ -106,12 +106,11 @@ class EditPerson(EditPrimary): return RelLib.Person() def get_menu_title(self): - pname = self.obj.get_primary_name() - if pname.is_empty(): - title = _('New Person') - else: - name = NameDisplay.displayer.display_name(pname) + if self.obj.get_handle(): + name = NameDisplay.displayer.display(self.obj) title = _('Person') + ': %s' % name + else: + title = _('New Person') return title def _local_init(self):