aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-chatroom.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-chatroom.c')
-rw-r--r--libempathy/empathy-chatroom.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libempathy/empathy-chatroom.c b/libempathy/empathy-chatroom.c
index 5c25de3ca..ac81af252 100644
--- a/libempathy/empathy-chatroom.c
+++ b/libempathy/empathy-chatroom.c
@@ -226,6 +226,11 @@ chatroom_set_property (GObject *object,
break;
case PROP_FAVORITE:
priv->favorite = g_value_get_boolean (value);
+ if (!priv->favorite)
+ {
+ empathy_chatroom_set_auto_connect (EMPATHY_CHATROOM (object),
+ FALSE);
+ }
break;
case PROP_TP_CHANNEL:
if (priv->tp_channel != NULL)
@@ -387,6 +392,12 @@ empathy_chatroom_set_auto_connect (EmpathyChatroom *chatroom,
priv->auto_connect = auto_connect;
+ if (priv->auto_connect)
+ {
+ /* auto_connect implies favorite */
+ priv->favorite = TRUE;
+ }
+
g_object_notify (G_OBJECT (chatroom), "auto-connect");
}