Avoid HandleError when dragging an Added Person from EditPerson
Fixes #10857
This commit is contained in:
@ -250,7 +250,8 @@ class EditPerson(EditPrimary):
|
|||||||
self.eventbox.connect('button-press-event',
|
self.eventbox.connect('button-press-event',
|
||||||
self._image_button_press)
|
self._image_button_press)
|
||||||
# allow to initiate a drag-and-drop with this person if it has a handle
|
# 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 = Gtk.TargetList.new([])
|
||||||
tglist.add(DdTargets.PERSON_LINK.atom_drag_type,
|
tglist.add(DdTargets.PERSON_LINK.atom_drag_type,
|
||||||
DdTargets.PERSON_LINK.target_flags,
|
DdTargets.PERSON_LINK.target_flags,
|
||||||
|
Reference in New Issue
Block a user