Cleaner way to check for account line expand state. Fixes #3884.
This commit is contained in:
parent
6b465a4218
commit
60bb033a90
|
@ -859,7 +859,8 @@ class RosterWindow:
|
||||||
accounts = [account]
|
accounts = [account]
|
||||||
|
|
||||||
path = self.model.get_path(child_iter)
|
path = self.model.get_path(child_iter)
|
||||||
if not self.tree.row_expanded(path) and self.model.iter_has_child(child_iter):
|
if account in self.collapsed_rows and \
|
||||||
|
self.model.iter_has_child(child_iter):
|
||||||
account_name = '[%s]' % account_name
|
account_name = '[%s]' % account_name
|
||||||
|
|
||||||
if (gajim.account_is_connected(account) or (self.regroup and \
|
if (gajim.account_is_connected(account) or (self.regroup and \
|
||||||
|
|
Loading…
Reference in New Issue