when we split/merge gc windows, we also save the list of contacts and the connected state

This commit is contained in:
Yann Leboulanger 2005-08-09 19:24:44 +00:00
parent d2659b2cf4
commit 6b9c37f40b
1 changed files with 6 additions and 0 deletions

View File

@ -100,6 +100,8 @@ class GroupchatWindow(chat.Chat):
'nick': self.nicks[room_jid],
'model': self.list_treeview[room_jid].get_model(),
'subject': self.subjects[room_jid],
'contacts': gajim.gc_contacts[self.account][room_jid],
'connected': gajim.gc_connected[self.account][room_jid],
}
def load_var(self, room_jid, var):
@ -109,6 +111,10 @@ class GroupchatWindow(chat.Chat):
self.list_treeview[room_jid].expand_all()
self.set_subject(room_jid, var['subject'])
self.subjects[room_jid] = var['subject']
gajim.gc_contacts[self.account][room_jid] = var['contacts']
gajim.gc_connected[self.account][room_jid] = var['connected']
if gajim.gc_connected[self.account][room_jid]:
self.got_connected(room_jid)
def on_groupchat_window_delete_event(self, widget, event):
"""close window"""