From 5cf54d43009e85a9a18efb63b52ddd2cd023e052 Mon Sep 17 00:00:00 2001 From: Josip Date: Thu, 30 Jul 2015 12:10:53 +0200 Subject: [PATCH] 7910: tool to Edit Database Owner Information crashes --- gramps/plugins/tool/ownereditor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/tool/ownereditor.py b/gramps/plugins/tool/ownereditor.py index 11f30e010..4152ec383 100644 --- a/gramps/plugins/tool/ownereditor.py +++ b/gramps/plugins/tool/ownereditor.py @@ -163,12 +163,12 @@ class OwnerEditor(tool.Tool, ManagedWindow): def on_menu_activate(self, menuitem): """Copies the owner information from/to the preferences""" - if menuitem.name == 'copy_from_preferences_to_db': + if menuitem.props.name == 'copy_from_preferences_to_db': self.owner.set_from(get_researcher()) for entry in self.entries: entry.update() - elif menuitem.name == 'copy_from_db_to_preferences': + elif menuitem.props.name == 'copy_from_db_to_preferences': for i in range(len(config_keys)): config.set(config_keys[i], self.owner.get()[i])