Skip to content

Commit

Permalink
Add the data source to the changeset, not to the objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaskonrad committed Mar 25, 2017
1 parent 11187eb commit 7f39ae6
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,9 @@ public static OsmPrimitive loadAddress(OsmPrimitive selectedObject){

// Set or add the address source.
final String copyright = "Adressdaten: " + json.getString("copyright");
String source = selectedObject.get("source");

if (source == null) {
newObject.put("source", copyright);
} else if (!source.contains(copyright)) {
newObject.put("source", source + "; " + copyright);
}


// Add the data source to the changeset (not to the object because that can be changed easily).
Main.getLayerManager().getEditDataSet().addChangeSetTag("source", copyright);

new Notification(
"<strong>" + tr("Austria Address Helper") + "</strong><br />" +
Expand Down

0 comments on commit 7f39ae6

Please sign in to comment.