From 51dc8afb091820dc2f74c196b369f7c097b865c3 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 2 Dec 2005 19:12:21 +0000 Subject: [PATCH] take into account only the accounts that are synced with global status to compute the global status (for status combobox) --- src/common/helpers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/helpers.py b/src/common/helpers.py index ec0a21641..f66888e44 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -483,6 +483,9 @@ def get_output_of_command(command): def get_global_show(): maxi = 0 for account in gajim.connections: + if not gajim.config.get_per('accounts', account, + 'sync_with_global_status'): + continue connected = gajim.connections[account].connected if connected > maxi: maxi = connected