From ce9982b04ba7650ad07bfb723bd1c4b3b888262d Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 21 Nov 2005 09:59:19 +0000 Subject: [PATCH] prevent a tb with an ugly way. Dimitur Kirov where art thou? :( --- src/gajim.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gajim.py b/src/gajim.py index 11b5b7da2..e28eb77f2 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -914,12 +914,19 @@ class Interface: return msg_type = '' + event_type = '' if file_props['error'] == 0 and gajim.config.get('notify_on_file_complete'): msg_type = 'file-completed' event_type = _('File Transfer Completed') elif file_props['error'] == -1: msg_type = 'file-stopped' event_type = _('File Transfer Stopped') + + if event_type == '': # FIXME: ugly workaround (this can happen Gajim sent, Gaim recvs) + # this should never happen but it does. see process_result() in socks5.py + # who calls this func (sth is really wrong unless this func is also registered + # as progress_cb + return if msg_type: self.add_event(account, jid, msg_type, file_props)