Ignore:
Timestamp:
2013-12-29T21:46:27+01:00 (6 years ago)
Author:
simon04
Message:

fix #9484 - source in upload dialog: add knowledge, survey to selection, compute value from layers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/UploadAction.java

    r6380 r6565  
    77import java.awt.event.ActionEvent;
    88import java.awt.event.KeyEvent;
     9import java.util.HashMap;
    910import java.util.LinkedList;
    1011import java.util.List;
     
    231232            @Override
    232233            public void run() {
    233                 dialog.setDefaultChangesetTags(layer.data.getChangeSetTags());
     234                final HashMap<String, String> tags = new HashMap<String, String>(layer.data.getChangeSetTags());
     235                if (!tags.containsKey("source")) {
     236                    tags.put("source", Main.map.mapView.getLayerInformationForSourceTag());
     237                    System.out.println(tags.get("source"));
     238                }
     239                dialog.setDefaultChangesetTags(tags);
    234240            }
    235241        });
Note: See TracChangeset for help on using the changeset viewer.