Changeset 101 in josm for src/org/openstreetmap/josm/actions/UploadAction.java
- Timestamp:
- 2006-05-03T22:21:02+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/UploadAction.java
r99 r101 44 44 } 45 45 46 String osmDataServer = Main.pref.get("osm-server.url");47 //TODO: Remove this in later versions (temporary only)48 if (osmDataServer.endsWith("/0.2") || osmDataServer.endsWith("/0.2/")) {49 int answer = JOptionPane.showConfirmDialog(Main.parent,50 "You seem to have an outdated server entry in your preferences.\n" +51 "\n" +52 "As of JOSM Release 1.2, you must no longer specify the API version in\n" +53 "the osm url. For the OSM standard server, use http://www.openstreetmap.org/api" +54 "\n" +55 "Fix settings and continue?", "Outdated server url detected.", JOptionPane.YES_NO_OPTION);56 if (answer != JOptionPane.YES_OPTION)57 return;58 int cutPos = osmDataServer.endsWith("/0.2") ? 4 : 5;59 Main.pref.put("osm-server.url", osmDataServer.substring(0, osmDataServer.length()-cutPos));60 }61 62 46 if (!Main.map.conflictDialog.conflicts.isEmpty()) { 63 47 JOptionPane.showMessageDialog(Main.parent, "There are unresolved conflicts. You have to resolve these first.");
Note:
See TracChangeset
for help on using the changeset viewer.