prevent traceback
This commit is contained in:
parent
02e24ab120
commit
f748e893fb
1 changed files with 8 additions and 7 deletions
|
@ -763,13 +763,14 @@ class RosterWindow:
|
||||||
# Remove contact before redrawing, otherwise the old
|
# Remove contact before redrawing, otherwise the old
|
||||||
# numbers will still be show
|
# numbers will still be show
|
||||||
gajim.contacts.remove_jid(account, jid, remove_meta=True)
|
gajim.contacts.remove_jid(account, jid, remove_meta=True)
|
||||||
rest_of_family = [data for data in family
|
if iters:
|
||||||
if account != data['account'] or jid != data['jid']]
|
rest_of_family = [data for data in family
|
||||||
if iters and rest_of_family:
|
if account != data['account'] or jid != data['jid']]
|
||||||
# reshow the rest of the family
|
if rest_of_family:
|
||||||
brothers = self._add_metacontact_family(rest_of_family, account)
|
# reshow the rest of the family
|
||||||
for c, acc in brothers:
|
brothers = self._add_metacontact_family(rest_of_family, account)
|
||||||
self.draw_completely(c.jid, acc)
|
for c, acc in brothers:
|
||||||
|
self.draw_completely(c.jid, acc)
|
||||||
|
|
||||||
if iters:
|
if iters:
|
||||||
# Draw all groups of the contact
|
# Draw all groups of the contact
|
||||||
|
|
Loading…
Add table
Reference in a new issue