From 6a1aecd8b35cee47c56326d4babc46a146a91be0 Mon Sep 17 00:00:00 2001 From: Felix Kaser Date: Sat, 16 Jan 2010 16:15:31 +0100 Subject: set presence to offline when account is disabled else the presence is empty and no icon is shown in the infobar (#604706) --- src/empathy-accounts-dialog.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index 69bb110be..c1f386b57 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -232,6 +232,11 @@ accounts_dialog_update_status_infobar (EmpathyAccountsDialog *dialog, * are connected, consider ourself as Available. * We also check Offline because of this MC5 bug: fd.o #26060 */ presence = TP_CONNECTION_PRESENCE_TYPE_AVAILABLE; + + /* set presence to offline if account is disabled + * (else no icon is shown in infobar)*/ + if (!account_enabled) + presence = TP_CONNECTION_PRESENCE_TYPE_OFFLINE; } else { -- cgit v1.2.3