From ecd5c652a24c156460f782d15362f9a3e21e2c4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Tue, 31 Oct 2017 18:13:31 +0100 Subject: [PATCH] Get drag and drop data correctly Fixes #8773 --- gajim/chat_control.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gajim/chat_control.py b/gajim/chat_control.py index f23d77711..bf0ba8a12 100644 --- 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?