From 582d61e67e37b26f9fe765a5e6d953cec2b5b7a2 Mon Sep 17 00:00:00 2001 From: prculley Date: Sat, 20 Oct 2018 16:02:04 -0500 Subject: [PATCH] Fix Clipboard rows cannot be sorted via drag/drop Fixes #10849 --- gramps/gui/clipboard.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/gui/clipboard.py b/gramps/gui/clipboard.py index 28b706a3c..de13f63c5 100644 --- a/gramps/gui/clipboard.py +++ b/gramps/gui/clipboard.py @@ -1293,9 +1293,9 @@ class ClipboardListView: data = [_ob.__class__.DRAG_TARGET.drag_type, _ob, None, _ob._type, _ob._value, _ob._dbid, _ob._dbname] contains = model_contains(model, data) - if (contains and + if (contains and not ((context.action if hasattr(context, "action") else - context.get_actions()) != Gdk.DragAction.MOVE)): + context.get_actions()) & Gdk.DragAction.MOVE)): continue drop_info = widget.get_dest_row_at_pos(x, y) if drop_info: @@ -1314,7 +1314,7 @@ class ClipboardListView: # on self, then it moves the first, and copies the rest. if ((context.action if hasattr(context, "action") else - context.get_actions()) == Gdk.DragAction.MOVE): + context.get_actions()) & Gdk.DragAction.MOVE): context.finish(True, True, time) # remember time for double drop workaround.