[gnome-maps/gnome-40] contextMenu: Don't store route places



commit 3176094fc555212671142a12bb7d456adae62602
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 bfa04d79..5575e2d0 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]