[empathy] Don't set NM presence state on connect when it was unset
- From: Sjoerd Simons <sjoerds src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Don't set NM presence state on connect when it was unset
- Date: Mon, 1 Jun 2009 11:58:02 -0400 (EDT)
commit b06c101e97689187240ea55fe1d3e399ed0960e0
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Mon Jun 1 12:06:50 2009 +0100
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 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c
index dbc1473..92ab9f3 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]