we can now drop many files to a tab and Gajim will send all files

This commit is contained in:
Nikos Kouremenos 2005-08-17 16:47:40 +00:00
parent 0fb573ccc6
commit ee8173d393
1 changed files with 6 additions and 4 deletions

View File

@ -106,6 +106,8 @@ class TabbedChatWindow(chat.Chat):
timestamp, contact):
if target_type == self.TARGET_TYPE_URI_LIST:
uri = selection.data.strip()
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,