From 6120c81a783f6831d831f327b524034ad1096182 Mon Sep 17 00:00:00 2001 From: Jefry Lagrange Date: Thu, 23 Aug 2012 22:42:59 -0400 Subject: [PATCH] use contact with highest priority when requesting file --- src/filetransfers_window.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/filetransfers_window.py b/src/filetransfers_window.py index 4ee201ae7..dda49dfc4 100644 --- a/src/filetransfers_window.py +++ b/src/filetransfers_window.py @@ -248,14 +248,17 @@ class FileTransfersWindow: self.tree.get_selection().unselect_all() def show_hash_error(self, jid, file_props, account): + def on_yes(dummy): # Request the file to the sender - sid = gajim.connections[account].start_file_transfer(jid, + contact = gajim.contacts.get_contact_with_highest_priority(account, + jid) + fjid = contact.get_full_jid() + sid = gajim.connections[account].start_file_transfer(fjid, file_props, True) file_props.sid = sid - if file_props.type_ == 'r': file_name = os.path.basename(file_props.file_name) else: