From 1789db7dde8fa64c4053aad8b982c81e50b29cd2 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Thu, 8 Sep 2005 14:48:41 +0000 Subject: [PATCH] fix a tb --- src/tabbed_chat_window.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index b02c773d3..e8b2fb2d2 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -419,8 +419,9 @@ timestamp, contact): in the last 5 seconds? if yes we go active for mouse, composing for kbd if no we go paused if we were previously composing ''' - if jid not in self.xmls: - # the tab with jid is no longer open. stop timer + if jid not in self.xmls or contact is None: + # the tab with jid is no longer open or contact left + # stop timer return False # stop looping # FIXME: Why don't we just pass contact? @@ -450,8 +451,8 @@ timestamp, contact): in the last 30 seconds? if yes we go active if no we go inactive ''' - if jid not in self.xmls: - # the tab with jid is no longer open. stop timer + if jid not in self.xmls or contact is None: + # the tab with jid is no longer open or contact left return False # stop looping # FIXME: Why don't we just pass contact?