typo (append -> remove). Fixes #4618
This commit is contained in:
parent
e629ceb637
commit
d628fbef21
1 changed files with 1 additions and 14 deletions
|
@ -1407,19 +1407,6 @@ class RosterWindow:
|
||||||
self.tree.expand_row(path, False)
|
self.tree.expand_row(path, False)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _adjust_contact_expand_collapse_state(self, jid, account):
|
|
||||||
'''Expand/collapse group row based on self.collapsed_rows'''
|
|
||||||
iterC = self._get_contact_iter(jid, account)
|
|
||||||
if not iterC:
|
|
||||||
# Contact not visible
|
|
||||||
return
|
|
||||||
path = self.modelfilter.get_path(iterC)
|
|
||||||
if account + group in self.collapsed_rows:
|
|
||||||
self.tree.collapse_row(path)
|
|
||||||
else:
|
|
||||||
self.tree.expand_row(path, False)
|
|
||||||
return False
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
### Roster and Modelfilter handling
|
### Roster and Modelfilter handling
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
@ -3555,7 +3542,7 @@ class RosterWindow:
|
||||||
contact = gajim.contacts.get_contact(account, jid)
|
contact = gajim.contacts.get_contact(account, jid)
|
||||||
for group in contact.groups:
|
for group in contact.groups:
|
||||||
if account + group + jid in self.collapsed_rows:
|
if account + group + jid in self.collapsed_rows:
|
||||||
self.collapsed_rows.append(account + group + jid)
|
self.collapsed_rows.remove(account + group + jid)
|
||||||
family = gajim.contacts.get_metacontacts_family(account, jid)
|
family = gajim.contacts.get_metacontacts_family(account, jid)
|
||||||
nearby_family = \
|
nearby_family = \
|
||||||
self._get_nearby_family_and_big_brother(family, account)[0]
|
self._get_nearby_family_and_big_brother(family, account)[0]
|
||||||
|
|
Loading…
Add table
Reference in a new issue