[gnome-maps/wip/mlundblad/fix-liststore-warning] contextMenu: Don't store route places




commit 6d8bb1efa1fe4cdb3ba847da16dca86a72c86752
Author: Marcus Lundblad <ml update uu se>
Date:   Wed May 19 22:56:36 2021 +0200

    contextMenu: Don't store route places
    
    Flag coordinate-based places used for
    the route from/to/via menus to not be
    stored in the place store. As these
    places contains no names, it makes
    no sense, and it actually isn't
    supported by the place store and
    gives a GtkListStore warning.

 src/contextMenu.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/contextMenu.js b/src/contextMenu.js
index c1fc4eb0..6de6a8c8 100644
--- a/src/contextMenu.js
+++ b/src/contextMenu.js
@@ -101,7 +101,7 @@ var ContextMenu = GObject.registerClass({
         let location = new Location.Location({ latitude: this._latitude,
                                                longitude: this._longitude,
                                                accuracy: 0 });
-        let place = new Place.Place({ location: location });
+        let place = new Place.Place({ location: location, store: false });
 
         query.points[0].place = place;
     }
@@ -111,7 +111,7 @@ var ContextMenu = GObject.registerClass({
         let location = new Location.Location({ latitude: this._latitude,
                                                longitude: this._longitude,
                                                accuracy: 0 });
-        let place = new Place.Place({ location: location });
+        let place = new Place.Place({ location: location, store: false });
 
         query.points.last().place = place;
     }
@@ -121,7 +121,7 @@ var ContextMenu = GObject.registerClass({
         let location = new Location.Location({ latitude: this._latitude,
                                                longitude: this._longitude,
                                                accuracy: 0 });
-        let place = new Place.Place({ location: location });
+        let place = new Place.Place({ location: location, store: false });
 
         query.addPoint(-1).place = place;
     }


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