From b06c101e97689187240ea55fe1d3e399ed0960e0 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Mon, 1 Jun 2009 12:06:50 +0100 Subject: Don't set NM presence state on connect when it was unset When the presence state that was saved upon disconnect was _UNSET don't try to set it when we reconnect. --- libempathy/empathy-idle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libempathy') diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c index dbc1473e8..92ab9f39f 100644 --- a/libempathy/empathy-idle.c +++ b/libempathy/empathy-idle.c @@ -230,7 +230,8 @@ idle_nm_state_change_cb (DBusGProxy *proxy, priv = GET_PRIV (idle); - if (!priv->use_nm) { + if (!priv->use_nm + || priv->nm_saved_state == TP_CONNECTION_PRESENCE_TYPE_UNSET) { return; } -- cgit v1.2.3