[gnome-maps/wip/mlundblad/fix-liststore-warning: 2/2] contextMenu: Don't store route places
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/fix-liststore-warning: 2/2] contextMenu: Don't store route places
- Date: Thu, 20 May 2021 20:25:59 +0000 (UTC)
commit 01082452258fd6685896321a713e90530304c9e3
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]