From 78ec76736850dd3d9d603ba24f2052af0a302b96 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Mon, 14 Jul 2014 22:42:49 +0100 Subject: [PATCH] 7911: Fix bug adding parent places to a new place --- gramps/plugins/view/placetreeview.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gramps/plugins/view/placetreeview.py b/gramps/plugins/view/placetreeview.py index 4754a6d78..d342c499d 100644 --- a/gramps/plugins/view/placetreeview.py +++ b/gramps/plugins/view/placetreeview.py @@ -175,8 +175,7 @@ class PlaceTreeView(PlaceBaseView): def add(self, obj): """ - Add a new place. Attempt to get the top three levels of hierarchy from - the currently selected row. + Add a new place. Use the currently selected rows as parent places. """ parent_list = [] for handle in self.selected_handles(): @@ -186,7 +185,7 @@ class PlaceTreeView(PlaceBaseView): place = Place() if len(parent_list) > 0: - place.parent = parent_list + place.placeref_list = parent_list try: EditPlace(self.dbstate, self.uistate, [], place)