Author: asterix Date: 2009-02-03 16:10:56 +0100 (Tue, 03 Feb 2009) New Revision: 11054
Modified: trunk/src/message_window.py Log: prevent traceback when closing a transport chat window. Fixes #4767
Modified: trunk/src/message_window.py =================================================================== --- trunk/src/message_window.py 2009-02-02 06:43:19 UTC (rev 11053) +++ trunk/src/message_window.py 2009-02-03 15:10:56 UTC (rev 11054) @@ -480,7 +480,8 @@ 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