changeset c3f3423c5920 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=c3f3423c5920
description: prevent traceback
diffstat:
src/roster_window.py | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (25 lines):
diff -r ff48d7c48416 -r c3f3423c5920 src/roster_window.py
--- a/src/roster_window.py Thu Jul 23 22:57:33 2009 +0200
+++ b/src/roster_window.py Fri Jul 24 16:17:49 2009 +0200
@@ -763,13 +763,14 @@
# Remove contact before redrawing, otherwise the old
# numbers will still be show
gajim.contacts.remove_jid(account, jid, remove_meta=True)
- rest_of_family = [data for data in family
- if account != data['account'] or jid != data['jid']]
- if iters and rest_of_family:
- # reshow the rest of the family
- brothers = self._add_metacontact_family(rest_of_family, account)
- for c, acc in brothers:
- self.draw_completely(c.jid, acc)
+ if iters:
+ rest_of_family = [data for data in family
+ if account != data['account'] or jid != data['jid']]
+ if rest_of_family:
+ # reshow the rest of the family
+ brothers = self._add_metacontact_family(rest_of_family, account)
+ for c, acc in brothers:
+ self.draw_completely(c.jid, acc)
if iters:
# Draw all groups of the contact