[gnome-maps] application: Only add proper geocoded contacts



commit 41e9284e3ad7ddae337a715057b6c18f39c21689
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Tue Feb 24 20:18:22 2015 +0100

    application: Only add proper geocoded contacts

 src/application.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index c469874..56fd498 100644
--- a/src/application.js
+++ b/src/application.js
@@ -131,6 +131,9 @@ const Application = new Lang.Class({
         contactStore.get_contacts().forEach(function(contact) {
             contact.geocode(function() {
                 contact.get_places().forEach(function(p) {
+                    if (!p.location)
+                        return;
+
                     Utils.debug('Adding contact address: ' + p.name);
                     let place = new ContactPlace.ContactPlace({ place: p,
                                                                 contact: contact });


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