Cleaner way to check for account line expand state. Fixes #3884.

This commit is contained in:
Jean-Marie Traissard 2008-04-30 00:51:36 +00:00
parent 6b465a4218
commit 60bb033a90
1 changed files with 2 additions and 1 deletions

View File

@ -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 \