diff options
author | Marcus Lundblad <ml@update.uu.se> | 2021-05-19 22:56:36 +0200 |
---|---|---|
committer | Marcus Lundblad <ml@update.uu.se> | 2021-05-20 20:25:27 +0000 |
commit | 01082452258fd6685896321a713e90530304c9e3 (patch) | |
tree | b28a56089702c6d23aab066f85b8311a65c6ab0a | |
parent | 74e1eed62dedb02774ba8bfc5b94750bdff00aec (diff) | |
download | gnome-maps-wip/mlundblad/fix-liststore-warning.tar.gz |
contextMenu: Don't store route placeswip/mlundblad/fix-liststore-warning
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.
-rw-r--r-- | src/contextMenu.js | 6 |
1 files 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; } |