Send 'gone' for each tab when the entire chat window was closed instead

of only when a tab is individually closed.
This commit is contained in:
Travis Shirk 2005-11-21 02:32:59 +00:00
parent a20cf92434
commit a180b3be8f
1 changed files with 1 additions and 0 deletions

View File

@ -387,6 +387,7 @@ class TabbedChatWindow(chat.Chat):
def on_tabbed_chat_window_destroy(self, widget):
# Reset contact chatstates to all open tabs
for jid in self.xmls:
self.send_chatstate('gone', jid)
self.contacts[jid].chatstate = None
#clean gajim.interface.instances[self.account]['chats']
chat.Chat.on_window_destroy(self, widget, 'chats')