From 4f8dab224c4757de5ab0bbb3021017974e93302e Mon Sep 17 00:00:00 2001 From: Matthias Kemmer Date: Fri, 18 Jun 2021 16:13:00 +0200 Subject: [PATCH] Use replacement text for blank surname heading in person tree This will use the replacement text defined in the preferences instead of a blank heading in the person tree view and person selector. --- gramps/gui/views/treemodels/peoplemodel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gui/views/treemodels/peoplemodel.py b/gramps/gui/views/treemodels/peoplemodel.py index f8b544cdb..a320d9984 100644 --- a/gramps/gui/views/treemodels/peoplemodel.py +++ b/gramps/gui/views/treemodels/peoplemodel.py @@ -84,6 +84,7 @@ COLUMN_TAGS = 18 COLUMN_PRIV = 19 invalid_date_format = config.get('preferences.invalid-date-format') +no_surname = config.get("preferences.no-surname-text") #------------------------------------------------------------------------- # @@ -614,7 +615,7 @@ class PersonTreeModel(PeopleBaseModel, TreeBaseModel): return [_('Group As'), _('Name')] def column_header(self, node): - return node.name + return node.name if node.name else no_surname def add_row(self, handle, data): """