prevent traceback when closing a transport chat window. Fixes #4767

This commit is contained in:
Yann Leboulanger 2009-02-03 15:10:56 +00:00
parent f4101fbb8b
commit 36f8280620
1 changed files with 2 additions and 1 deletions

View File

@ -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