summaryrefslogtreecommitdiff
path: root/libraries/libfm/patches/0010-3584798-We-shouldn-t-disable-DnD-on-non-native-targe.patch
blob: d14e9491bdf40ade1248743c28ba3d6b47a18c16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From 40aa4a6ae1531b189a25d373d642f5c7a1f7023d Mon Sep 17 00:00:00 2001
From: Andriy Grytsenko <andrej@rep.kiev.ua>
Date: Thu, 15 Nov 2012 05:50:44 +0200
Subject: [PATCH 10/22] [#3584798]We shouldn't disable DnD on non-native
 targets completely.

The handling dropping on non-native target should have some check
but not denial as it was before. Let user get error message if
dropping failed for now and do some other checks later.
---
 src/gtk/fm-dnd-dest.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gtk/fm-dnd-dest.c b/src/gtk/fm-dnd-dest.c
index 21cf2c0..371e5f6 100644
--- a/src/gtk/fm-dnd-dest.c
+++ b/src/gtk/fm-dnd-dest.c
@@ -811,12 +811,16 @@ query_sources:
             else /* files inside trash are read only */
                 action = 0;
         }
+#if 0
+        /* bug #3584798: DnD(copy/move) to remote host(SFTP://) does not work.
+           we should do some check if target FS is R/O instead of this */
         else if(!fm_path_is_native(dest_path))
         {
             /* computer:/// and network:/// shouldn't received dropped files. */
             /* FIXME: some special handling can be done with menu:// */
             action = 0;
         }
+#endif
         else /* dest is a ordinary path */
         {
             /* determine if the dragged files are on the same device as destination file */
-- 
1.8.0.1