From 0a3b05f156b9dcc7a36204eeba6c224505ca00e7 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Thu, 21 Apr 2016 22:03:29 -0700 Subject: [PATCH] 8171: Tool 'Rename Event Types' does not include custom types --- gramps/plugins/tool/changetypes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/tool/changetypes.py b/gramps/plugins/tool/changetypes.py index 4cb1bafc9..5aa20c54c 100644 --- a/gramps/plugins/tool/changetypes.py +++ b/gramps/plugins/tool/changetypes.py @@ -55,6 +55,7 @@ class ChangeTypes(tool.BatchTool, ManagedWindow): def __init__(self, dbstate, user, options_class, name, callback=None): uistate = user.uistate self.user = user + self.dbstate = dbstate tool.BatchTool.__init__(self, dbstate, user, options_class, name) if self.fail: @@ -78,7 +79,9 @@ class ChangeTypes(tool.BatchTool, ManagedWindow): # Need to display localized event names etype = EventType() - event_names = sorted(etype.get_standard_names(), key=glocale.sort_key) + custom_events = self.dbstate.db.get_event_types() + event_names = sorted(etype.get_standard_names() + custom_events, + key=glocale.sort_key) self.fill_combo(self.auto1,event_names) self.fill_combo(self.auto2,event_names)