From aaecb0218737b598335599636f369b5686f9d201 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 21 Jul 2014 18:29:03 -0700 Subject: [PATCH] add run_name_format_option to stdoptions.py --- gramps/gen/plug/report/stdoptions.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gramps/gen/plug/report/stdoptions.py b/gramps/gen/plug/report/stdoptions.py index d8566b605..2f00ae2ac 100644 --- a/gramps/gen/plug/report/stdoptions.py +++ b/gramps/gen/plug/report/stdoptions.py @@ -65,3 +65,12 @@ def add_name_format_option(menu, category): name_format.add_item(number, name) name_format.set_help(_("Select the format to display names")) menu.add_option(category, "name_format", name_format) + +def run_name_format_option(self, menu): + """ + Run the option for changing the report's name format to a + report-specific format instead of the user's Edit=>Preferences choice + """ + name_format = menu.get_option_by_name("name_format").get_value() + if name_format != 0: + self._name_display.set_default_format(name_format)