From 1142cc1e7d8893ce1c12366753c027ca34bac741 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 28 Oct 2005 22:37:58 +0000 Subject: [PATCH] don't remove the event if it's not handled in open_event function --- src/roster_window.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index 456b797ef..431c16266 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1802,24 +1802,28 @@ _('If "%s" accepts this request you will know his status.') %jid) typ = event[0] data = event[1] ft = gajim.interface.windows['file_transfers'] - gajim.interface.remove_first_event(account, jid, typ) if typ == 'normal': dialogs.SingleMessageWindow(account, jid, action = 'receive', from_whom = jid, subject = data[1], message = data[0]) + gajim.interface.remove_first_event(account, jid, typ) return True elif typ == 'file-request': contact = gajim.get_contact_instance_with_highest_priority(account, jid) ft.show_file_request(account, contact, data) + gajim.interface.remove_first_event(account, jid, typ) return True elif typ in ('file-request-error', 'file-send-error'): ft.show_send_error(data) + gajim.interface.remove_first_event(account, jid, typ) return True elif typ in ('file-error', 'file-stopped'): ft.show_stopped(jid, data) + gajim.interface.remove_first_event(account, jid, typ) return True elif typ == 'file-completed': ft.show_completed(jid, data) + gajim.interface.remove_first_event(account, jid, typ) return True return False