From 36f82806207a29df31047f687e69bc73ae84bae6 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Tue, 3 Feb 2009 15:10:56 +0000 Subject: [PATCH] prevent traceback when closing a transport chat window. Fixes #4767 --- src/message_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/message_window.py b/src/message_window.py index 1f2166d0b9..d7a09c0466 100644 --- a/src/message_window.py +++ b/src/message_window.py @@ -480,7 +480,8 @@ class MessageWindow(object): bctrl = self.get_control(jid, ctrl.account) # keep last_message_time around unless this was our last control with # that jid - if not fctrl and not bctrl: + if not fctrl and not bctrl and \ + fjid in gajim.last_message_time[ctrl.account]: del gajim.last_message_time[ctrl.account][fjid] # Disconnect tab DnD only if GTK version < 2.10 -- GitLab