aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-11-10 17:54:04 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-11-16 18:31:24 +0800
commit7c3389cdc7276917d23c83b646573b6d9f22cfa7 (patch)
tree46d32f4a4c5840d22acdc7933b3f7a586c37119c
parentd722834868ac8a38a0fd08723d2d1274f660650a (diff)
downloadgsoc2013-empathy-7c3389cdc7276917d23c83b646573b6d9f22cfa7.tar
gsoc2013-empathy-7c3389cdc7276917d23c83b646573b6d9f22cfa7.tar.gz
gsoc2013-empathy-7c3389cdc7276917d23c83b646573b6d9f22cfa7.tar.bz2
gsoc2013-empathy-7c3389cdc7276917d23c83b646573b6d9f22cfa7.tar.lz
gsoc2013-empathy-7c3389cdc7276917d23c83b646573b6d9f22cfa7.tar.xz
gsoc2013-empathy-7c3389cdc7276917d23c83b646573b6d9f22cfa7.tar.zst
gsoc2013-empathy-7c3389cdc7276917d23c83b646573b6d9f22cfa7.zip
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
-rw-r--r--libempathy-gtk/empathy-individual-widget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index 49e52861c..bbd8c9629 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;