Changeset 5412 in josm for trunk/src/org
- Timestamp:
- 2012-08-09T22:27:54+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r5391 r5412 123 123 @Override 124 124 public String toString() { 125 return value .toString();125 return value != null ? value.toString() : "null"; 126 126 } 127 127 } -
trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java
r5266 r5412 23 23 import javax.swing.Icon; 24 24 import javax.swing.ImageIcon; 25 import javax.swing.InputMap;26 25 import javax.swing.JButton; 27 26 import javax.swing.JComponent; … … 36 35 import org.openstreetmap.josm.data.Preferences.PreferenceChangeEvent; 37 36 import org.openstreetmap.josm.data.Preferences.PreferenceChangedListener; 37 import org.openstreetmap.josm.data.Preferences.Setting; 38 38 import org.openstreetmap.josm.data.osm.Changeset; 39 39 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 500 500 if (e.getKey() == null || ! e.getKey().equals("osm-server.url")) 501 501 return; 502 if (e.getNewValue() == null) { 503 setTitle(tr("Upload")); 502 final Setting<?> newValue = e.getNewValue(); 503 final String url; 504 if (newValue == null || newValue.getValue() == null) { 505 url = OsmApi.getOsmApi().getBaseUrl(); 504 506 } else { 505 setTitle(tr("Upload to ''{0}''", e.getNewValue())); 506 } 507 url = newValue.getValue().toString(); 508 } 509 setTitle(tr("Upload to ''{0}''", url)); 507 510 } 508 511 }
Note:
See TracChangeset
for help on using the changeset viewer.