prevent a tb with an ugly way. Dimitur Kirov where art thou? :(
This commit is contained in:
parent
9db3d26c1f
commit
ce9982b04b
1 changed files with 7 additions and 0 deletions
|
@ -914,6 +914,7 @@ class Interface:
|
||||||
return
|
return
|
||||||
|
|
||||||
msg_type = ''
|
msg_type = ''
|
||||||
|
event_type = ''
|
||||||
if file_props['error'] == 0 and gajim.config.get('notify_on_file_complete'):
|
if file_props['error'] == 0 and gajim.config.get('notify_on_file_complete'):
|
||||||
msg_type = 'file-completed'
|
msg_type = 'file-completed'
|
||||||
event_type = _('File Transfer Completed')
|
event_type = _('File Transfer Completed')
|
||||||
|
@ -921,6 +922,12 @@ class Interface:
|
||||||
msg_type = 'file-stopped'
|
msg_type = 'file-stopped'
|
||||||
event_type = _('File Transfer 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:
|
if msg_type:
|
||||||
self.add_event(account, jid, msg_type, file_props)
|
self.add_event(account, jid, msg_type, file_props)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue