[gnome-maps] osmEditDialog: Initialize OSM type when adding new object
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] osmEditDialog: Initialize OSM type when adding new object
- Date: Mon, 13 Nov 2017 20:24:43 +0000 (UTC)
commit 05705dfa1ff062f8b4918e138e2455ab1f2a9cc8
Author: Marcus Lundblad <ml update uu se>
Date: Mon Nov 13 21:22:30 2017 +0100
osmEditDialog: Initialize OSM type when adding new object
Even though the OSM type is fallbacked to 'node' when serializing
the object so it still worked, this avoids an ugly warning.
https://bugzilla.gnome.org/show_bug.cgi?id=782861
src/osmEditDialog.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/osmEditDialog.js b/src/osmEditDialog.js
index 637f675..18fcd23 100644
--- a/src/osmEditDialog.js
+++ b/src/osmEditDialog.js
@@ -22,6 +22,7 @@
const _ = imports.gettext.gettext;
+const Geocode = imports.gi.GeocodeGlib;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
@@ -337,6 +338,7 @@ var OSMEditDialog = new Lang.Class({
newNode.set_tag('name', '');
this._loadOSMData(newNode);
this._isEditing = true;
+ this._osmType = Geocode.PlaceOsmType.NODE;
} else {
this._osmType = this._place.osmType;
Application.osmEdit.fetchObject(this._place,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]