Redraw groups if we add/remove contacts. Fixes #3192

This commit is contained in:
Stephan Erb 2007-06-27 10:32:54 +00:00
parent 967d050db2
commit 2e8a39005e

View file

@ -354,6 +354,7 @@ class RosterWindow:
elif not groups: elif not groups:
groups = [_('General')] groups = [_('General')]
for group in groups: for group in groups:
self.draw_group(group, account)
iterG = self.get_group_iter(group, account) iterG = self.get_group_iter(group, account)
if not iterG: if not iterG:
IterAcct = self.get_account_iter(account) IterAcct = self.get_account_iter(account)
@ -556,6 +557,8 @@ class RosterWindow:
else: else:
if gajim.groups[account].has_key(group): if gajim.groups[account].has_key(group):
del gajim.groups[account][group] del gajim.groups[account][group]
else:
self.draw_group(group, account)
# re-add children # re-add children
for child in children: for child in children: