[gnome-maps/gnome-3-34] placeBubble: Use place instance from the place store



commit 85ae5780f31622701b673e36c24a2254d2a5a0f2
Author: Marcus Lundblad <ml update uu se>
Date:   Sat Jan 2 15:38:51 2021 +0100

    placeBubble: Use place instance from the place store
    
    When populating place details use the place instance
    stored in the place store in the case when not retrieving
    from Overpass (e.g. when not stale).

 src/placeBubble.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/placeBubble.js b/src/placeBubble.js
index 19e4082b..372b5f3d 100644
--- a/src/placeBubble.js
+++ b/src/placeBubble.js
@@ -98,8 +98,8 @@ var PlaceBubble = GObject.registerClass({
             if (Application.placeStore.isStale(this.place)) {
                 overpass.addInfo(this.place);
             } else {
-                let place = Application.placeStore.get(this.place);
-                this._populate(place);
+                this._place = Application.placeStore.get(this.place);
+                this._populate(this.place);
             }
         } else if (this.place.store && !this.place.prefilled) {
             overpass.addInfo(this.place);


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