[empathy] update_weak_contact: use a greater or equal comparaison
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] update_weak_contact: use a greater or equal comparaison
- Date: Wed, 16 Nov 2011 14:12:21 +0000 (UTC)
commit 7c3389cdc7276917d23c83b646573b6d9f22cfa7
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Nov 10 10:54:04 2011 +0100
update_weak_contact: use a greater or equal comparaison
That way we'll pick at least one TpContact if there is only one contact in
the individual and he doesn't have any presence (IRC for example).
https://bugzilla.gnome.org/show_bug.cgi?id=663763
libempathy-gtk/empathy-individual-widget.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index 49e5286..bbd8c96 100644
--- a/libempathy-gtk/empathy-individual-widget.c
+++ b/libempathy-gtk/empathy-individual-widget.c
@@ -189,7 +189,7 @@ update_weak_contact (EmpathyIndividualWidget *self)
presence_type_cur = folks_presence_details_get_presence_type (
presence);
- if (folks_presence_details_typecmp (
+ if (tp_contact == NULL || folks_presence_details_typecmp (
presence_type_cur, presence_type) > 0)
{
presence_type = presence_type_cur;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]