[gnome-maps] placeBubble: Only allow editing if we have osm_id



commit d8b8d9fd781710c59fc3fb67f867f17d5949abd0
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Mon Feb 15 12:16:29 2016 +0100

    placeBubble: Only allow editing if we have osm_id

 src/placeBubble.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/placeBubble.js b/src/placeBubble.js
index 8c3ef42..be364e9 100644
--- a/src/placeBubble.js
+++ b/src/placeBubble.js
@@ -94,7 +94,8 @@ const PlaceBubble = new Lang.Class({
         }
         this.content.add(this._stack);
 
-        if (this.place instanceof ContactPlace.ContactPlace)
+        let osm_id = this.place.osm_id;
+        if (this.place instanceof ContactPlace.ContactPlace || !osm_id)
             this._editButton.visible = false;
         else
             this._initEditButton();


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