From a08f1630da5d4125e7fa2f92ec96ac23ab102925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 21 Sep 2016 00:21:35 +0200 Subject: [PATCH] Fix drop on attachment button under KDE The copy action needs to also be set to avoid having to use "Shift" on the drop. issue5871 review33391002 --- tryton/gui/window/form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/form.py b/tryton/gui/window/form.py index e0f9f06ea8..f34539a92d 100644 --- a/tryton/gui/window/form.py +++ b/tryton/gui/window/form.py @@ -554,7 +554,7 @@ class Form(SignalEvent, TabContent): attach_btn = self.buttons['attach'] attach_btn.drag_dest_set(gtk.DEST_DEFAULT_ALL, [ ('text/uri-list', 0, 0), - ], gtk.gdk.ACTION_MOVE) + ], gtk.gdk.ACTION_MOVE | gtk.gdk.ACTION_COPY) attach_btn.connect('drag_data_received', self.attach_drag_data_received)