[empathy] Don't create a marker for contacts with empty location



commit b9d913aced1b76300ce6b18b53878b4f40cf2264
Author: Pierre-Luc Beaudoin <pierre-luc beaudoin collabora co uk>
Date:   Tue Aug 18 15:43:18 2009 -0400

    Don't create a marker for contacts with empty location

 src/empathy-map-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-map-view.c b/src/empathy-map-view.c
index 58d8334..44d3edd 100644
--- a/src/empathy-map-view.c
+++ b/src/empathy-map-view.c
@@ -181,7 +181,7 @@ map_view_contacts_foreach (GtkTreeModel *model,
 
   location = empathy_contact_get_location (contact);
 
-  if (location == NULL)
+  if (location == NULL || g_hash_table_size (location) == 0)
     return FALSE;
 
   marker = champlain_marker_new ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]