From 36404caad80d41d72eea77b90174b67a4a956268 Mon Sep 17 00:00:00 2001 From: Josip Date: Fri, 31 Jul 2015 00:33:54 +0200 Subject: [PATCH] 7403: Unexpected error with coping data between DB Owner and Preferences --- gramps/plugins/tool/ownereditor.glade | 4 ++-- gramps/plugins/tool/ownereditor.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gramps/plugins/tool/ownereditor.glade b/gramps/plugins/tool/ownereditor.glade index 247a52215..b9918fcdc 100644 --- a/gramps/plugins/tool/ownereditor.glade +++ b/gramps/plugins/tool/ownereditor.glade @@ -7,7 +7,7 @@ False - Copy from DB to Preferences + Copy from DB to Preferences False True False @@ -19,7 +19,7 @@ - Copy from Preferences to DB + Copy from Preferences to DB False True False 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])