]> git.0d.be Git - empathy.git/commitdiff
set presence to offline when account is disabled
authorFelix Kaser <f.kaser@gmx.net>
Sat, 16 Jan 2010 15:15:31 +0000 (16:15 +0100)
committerFelix Kaser <f.kaser@gmx.net>
Sat, 16 Jan 2010 15:15:31 +0000 (16:15 +0100)
else the presence is empty and no icon is shown in the infobar (#604706)

src/empathy-accounts-dialog.c

index 69bb110be39fa70b259f40ddc17bd6413a12659d..c1f386b575de58d108b90b143f16927ddd2aec73 100644 (file)
@@ -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
     {