From f77ca8543ff3d4deeeb844e33aedfc7c2045c6bc Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 22 Jun 2007 16:53:06 +0000 Subject: [PATCH] send all files when we drop several files in roster --- src/roster_window.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 1e7a8e325..539907b80 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -4729,18 +4729,18 @@ class RosterWindow: for uri in uri_splitted: path = helpers.get_file_path_from_dnd_dropped_uri(uri) sec_text += '\n' + os.path.basename(path) - def _on_send_files(widget, account, jid, uri): + def _on_send_files(widget, account, jid, uris): dialog.destroy() c = gajim.contacts.get_contact_with_highest_priority(account, jid) - uri_splitted = uri.split() # we may have more than one file dropped - for uri in uri_splitted: + for uri in uris: path = helpers.get_file_path_from_dnd_dropped_uri(uri) if os.path.isfile(path): # is it file? gajim.interface.instances['file_transfers'].send_file( account, c, path) dialog = dialogs.NonModalConfirmationDialog(prim_text, sec_text, - on_response_ok = (_on_send_files, account_dest, jid_dest, uri)) + on_response_ok = (_on_send_files, account_dest, jid_dest, + uri_splitted)) dialog.popup() return