Changeset 18457 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2022-05-25T23:29:07+02:00 (3 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/BasicUploadSettingsPanel.java
r18283 r18457 233 233 * @return The source from the layer info. 234 234 */ 235 privateString getSourceFromLayer() {235 String getSourceFromLayer() { 236 236 String source = MainApplication.getMap().mapView.getLayerInformationForSourceTag(); 237 237 return Utils.shortenString(source, Changeset.MAX_CHANGESET_TAG_LENGTH); -
trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java
r18283 r18457 239 239 model.putAll(map); // init with tags from history 240 240 model.putAll(this.dataSet); // overwrite with tags from the dataset 241 if (Config.getPref().getBoolean("upload.source.obtainautomatically", false) 242 && this.dataSet.getChangeSetTags().containsKey(UploadDialogModel.SOURCE)) { 243 model.put(UploadDialogModel.SOURCE, pnlBasicUploadSettings.getSourceFromLayer()); 244 } 241 245 242 246 tpConfigPanels.setSelectedIndex(0); -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r18287 r18457 1279 1279 1280 1280 @Override 1281 public String getChangesetSourceTag() { 1282 return this.data.getChangeSetTags().getOrDefault("source", null); 1283 } 1284 1285 @Override 1281 1286 public AbstractUploadDialog getUploadDialog() { 1282 1287 UploadDialog dialog = UploadDialog.getUploadDialog();
Note:
See TracChangeset
for help on using the changeset viewer.