clean some var when we destroy a group chat window

This commit is contained in:
Yann Leboulanger 2005-08-06 10:15:56 +00:00
parent e05c6de71f
commit 11e85d4984
1 changed files with 3 additions and 0 deletions

View File

@ -164,6 +164,9 @@ class GroupchatWindow(chat.Chat):
def on_groupchat_window_destroy(self, widget):
chat.Chat.on_window_destroy(self, widget, 'gc')
for room_jid in self.xmls:
del gajim.gc_contacts[self.account][room_jid]
del gajim.gc_connected[self.account][room_jid]
def on_groupchat_window_focus_in_event(self, widget, event):
"""When window get focus"""