Philipp Hörist pushed to branch master at gajim / gajim

Commits:
ecd5c652 by Philipp Hörist at 2017-10-31T18:13:31+01:00
Get drag and drop data correctly

Fixes #8773

- - - - -


1 changed file:

- gajim/chat_control.py


Changes:

=====================================
gajim/chat_control.py
=====================================
--- a/gajim/chat_control.py
+++ b/gajim/chat_control.py
@@ -1268,8 +1268,9 @@ class ChatControl(ChatControlBase):
         if target_type == self.TARGET_TYPE_URI_LIST:
             if not c.resource: # If no resource is known, we can't send a file
                 return
-            uri = selection.get_data().strip()
-            uri_splitted = uri.split() # we may have more than one file dropped
+
+            # we may have more than one file dropped
+            uri_splitted = selection.get_uris()
             for uri in uri_splitted:
                 path = helpers.get_file_path_from_dnd_dropped_uri(uri)
                 if os.path.isfile(path): # is it file?



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/ecd5c652a24c156460f782d15362f9a3e21e2c4f

---
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/ecd5c652a24c156460f782d15362f9a3e21e2c4f
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to