From 8da22fcbbf0dcad82826b11aa2d0c830e757fc9e Mon Sep 17 00:00:00 2001 From: prculley Date: Fri, 26 Oct 2018 10:25:05 -0500 Subject: [PATCH] Avoid HandleError when dragging an Added Person from EditPerson Fixes #10857 --- gramps/gui/editors/editperson.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gui/editors/editperson.py b/gramps/gui/editors/editperson.py index cd8276a52..90f052f54 100644 --- a/gramps/gui/editors/editperson.py +++ b/gramps/gui/editors/editperson.py @@ -250,7 +250,8 @@ class EditPerson(EditPrimary): self.eventbox.connect('button-press-event', self._image_button_press) # allow to initiate a drag-and-drop with this person if it has a handle - #if self.obj.get_handle(): + if self.added: + return # Avoid HandleError if dragging an objet not in db yet tglist = Gtk.TargetList.new([]) tglist.add(DdTargets.PERSON_LINK.atom_drag_type, DdTargets.PERSON_LINK.target_flags,