redraw acount row to have correct online / total number of contacts when we minimize / open / disconnect from a groupchat. fixes #3247

This commit is contained in:
Yann Leboulanger 2007-06-25 17:07:17 +00:00
parent ebb5c511f3
commit 6c328e2a33
1 changed files with 3 additions and 0 deletions

View File

@ -439,6 +439,7 @@ class RosterWindow:
self.add_contact_to_roster(jid, account)
for group in contact.groups:
self.draw_group(group, account)
self.draw_account(account)
return contact
def get_self_contact_iter(self, account):
@ -1845,6 +1846,7 @@ class RosterWindow:
self.remove_contact(contact, account)
gajim.contacts.remove_contact(account, contact)
self.draw_group(_('Groupchats'), account)
self.draw_account(account)
def on_send_single_message_menuitem_activate(self, widget, account,
contact = None):
@ -2531,6 +2533,7 @@ class RosterWindow:
self.remove_contact(contact, account)
gajim.contacts.remove_contact(account, contact)
self.draw_group(_('Groupchats'), account)
self.draw_account(account)
def make_group_menu(self, event, iter):
'''Make group's popup menu'''