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])