From cdff0daff12355338641ee43223a73188dcdc775 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Wed, 5 Mar 2014 13:57:34 +0000 Subject: [PATCH] Fix parent place selection for new places --- gramps/gui/editors/editplaceref.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/gui/editors/editplaceref.py b/gramps/gui/editors/editplaceref.py index 22887d356..228376b64 100644 --- a/gramps/gui/editors/editplaceref.py +++ b/gramps/gui/editors/editplaceref.py @@ -82,7 +82,10 @@ class EditPlaceRef(EditSecondary): return skip def select_parent(self, button): - skip = self.get_skip_list(self.handle) + if self.handle: + skip = self.get_skip_list(self.handle) + else: + skip = [] sel = SelectPlace(self.dbstate, self.uistate, self.track, skip=skip) parent = sel.run() if parent: