Avoid HandleError when dragging an Added Person from EditPerson

Fixes #10857
This commit is contained in:
prculley 2018-10-26 10:25:05 -05:00 committed by Nick Hall
parent 582d61e67e
commit 8da22fcbbf

View File

@ -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,