From dfc34367576db19ac05ade7ae0ea7c4f0e40b9eb Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Fri, 15 Sep 2006 23:07:14 +0000
Subject: [PATCH] fix TB when error in FT. Fixes #2418

---
 src/filetransfers_window.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/filetransfers_window.py b/src/filetransfers_window.py
index 0e31e8a4ed..634fa2a9ae 100644
--- a/src/filetransfers_window.py
+++ b/src/filetransfers_window.py
@@ -450,8 +450,10 @@ _('Connection with peer cannot be established.'))
 			for ev_type in ('file-error', 'file-completed', 'file-request-error',
 			'file-send-error', 'file-stopped'):
 				for event in gajim.events.get_events(account, jid, [ev_type]):
-					if event.parameters[1]['sid'] == file_props['sid']:
+					if event.parameters['sid'] == file_props['sid']:
 						gajim.events.remove_events(account, jid, event)
+						gajim.interface.roster.draw_contact(jid, account)
+						gajim.interface.roster.show_title()
 		del(self.files_props[sid[0]][sid[1:]])
 		del(file_props)
 		
-- 
GitLab