summaryrefslogtreecommitdiff
path: root/src/mcd-manager.c
diff options
context:
space:
mode:
authorAlberto Mardegan <mardy@users.sourceforge.net>2007-10-25 07:46:11 +0000
committerAlberto Mardegan <mardy@users.sourceforge.net>2007-10-25 07:46:11 +0000
commitd0fbe707e8b8ccd4a7bb620bb84a32575896ed8c (patch)
tree4a1936ace84d8a6386f332780979f31dd2a0fb5e /src/mcd-manager.c
parentefb53aa97e0b134af39fc5bf04977926adfb7435 (diff)
downloadtelepathy-mission-control-d0fbe707e8b8ccd4a7bb620bb84a32575896ed8c.tar.gz
When an account gets enabled, check for the requested presence, not
for the actual. git-svn-id: https://mission-control.svn.sourceforge.net/svnroot/mission-control/trunk@178 d91c8aed-3f2b-0410-a83d-924a1c20a0ba
Diffstat (limited to 'src/mcd-manager.c')
-rw-r--r--src/mcd-manager.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mcd-manager.c b/src/mcd-manager.c
index babe7e04..d98c9ebd 100644
--- a/src/mcd-manager.c
+++ b/src/mcd-manager.c
@@ -837,7 +837,7 @@ mcd_manager_add_account (McdManager * manager, McAccount * account)
{
McdManagerPrivate *priv;
McdConnection *connection;
- McPresence actual_presence;
+ McPresence requested_presence;
g_return_val_if_fail (MCD_IS_MANAGER (manager), FALSE);
g_return_val_if_fail (MC_IS_ACCOUNT (account), FALSE);
@@ -858,16 +858,16 @@ mcd_manager_add_account (McdManager * manager, McAccount * account)
priv->accounts = g_list_prepend (priv->accounts, account);
g_debug ("%s: %u accounts in total", G_STRFUNC, g_list_length (priv->accounts));
- actual_presence =
- mcd_presence_frame_get_actual_presence (priv->presence_frame);
+ requested_presence =
+ mcd_presence_frame_get_requested_presence (priv->presence_frame);
connection = mcd_manager_get_account_connection (manager, account);
if (!connection)
{
/* if presence is not offline or unset, we must create the
* connection for this new account */
- if ((actual_presence != MC_PRESENCE_OFFLINE &&
- actual_presence != MC_PRESENCE_UNSET))
+ if ((requested_presence != MC_PRESENCE_OFFLINE &&
+ requested_presence != MC_PRESENCE_UNSET))
{
_mcd_manager_create_connection (manager, account);
}