From ee8173d393d5e87d13191a9a91dddf6f184abed4 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Wed, 17 Aug 2005 16:47:40 +0000 Subject: [PATCH] we can now drop many files to a tab and Gajim will send all files --- src/tabbed_chat_window.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index ea8a62e52..d52ce181e 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -106,10 +106,12 @@ class TabbedChatWindow(chat.Chat): timestamp, contact): if target_type == self.TARGET_TYPE_URI_LIST: uri = selection.data.strip() - path = helpers.get_file_path_from_dnd_dropped_uri(uri) - if os.path.isfile(path): # is it file? - self.plugin.windows['file_transfers'].send_file(self.account, - contact, path) + uri_splitted = uri.split() # we may have more than one file dropped + for uri in uri_splitted: + path = helpers.get_file_path_from_dnd_dropped_uri(uri) + if os.path.isfile(path): # is it file? + self.plugin.windows['file_transfers'].send_file(self.account, + contact, path) def draw_widgets(self, contact): """draw the widgets in a tab (status_image, contact_button ...)