From a180b3be8fe2c513636f462ffbfd082d7166bf22 Mon Sep 17 00:00:00 2001 From: Travis Shirk Date: Mon, 21 Nov 2005 02:32:59 +0000 Subject: [PATCH] Send 'gone' for each tab when the entire chat window was closed instead of only when a tab is individually closed. --- src/tabbed_chat_window.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index a3f7d4c8f..e6c73be9d 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -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')