[gnome-maps/wip/mlundblad/fix-place-details-update] placeBubble: Use place instance from the place store




commit b80ce83c8771c18a10a5c9d99912511f98076b37
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 5327c04f..ffdd8a6b 100644
--- a/src/placeBubble.js
+++ b/src/placeBubble.js
@@ -85,8 +85,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]