- Timestamp:
- 2009-07-19T14:57:34+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
r1800 r1810 53 53 } 54 54 55 protected OsmDataLayer getEditLayer() { 56 if (Main.map == null) return null; 57 if (Main.map.mapView == null) return null; 58 return Main.map.mapView.getEditLayer(); 59 } 60 55 61 @Override protected void finish() { 56 62 if (dataSet == null) … … 66 72 } 67 73 rememberDownloadedData(dataSet); 68 if (newLayer ) {74 if (newLayer || getEditLayer() == null) { 69 75 OsmDataLayer layer = new OsmDataLayer(dataSet, OsmDataLayer.createNewName(), null); 70 76 Main.main.addLayer(layer); 71 77 } else { 72 Main.main.createOrGetEditLayer().mergeFrom(dataSet);78 getEditLayer().mergeFrom(dataSet); 73 79 } 74 80 -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r1808 r1810 34 34 import org.openstreetmap.josm.actions.DistributeAction; 35 35 import org.openstreetmap.josm.actions.DownloadAction; 36 import org.openstreetmap.josm.actions.DownloadReferrersAction; 36 37 import org.openstreetmap.josm.actions.DuplicateAction; 37 38 import org.openstreetmap.josm.actions.ExitAction; … … 97 98 public final JosmAction gpxExport = new GpxExportAction(); 98 99 public final DownloadAction download = new DownloadAction(); 100 public final DownloadReferrersAction downloadReferrers = new DownloadReferrersAction(); 99 101 public final JosmAction update = new UpdateDataAction(); 100 102 public final JosmAction updateSelection = new UpdateSelectionAction(); … … 198 200 fileMenu.addSeparator(); 199 201 add(fileMenu, download); 202 add(fileMenu, downloadReferrers); 200 203 add(fileMenu, upload); 201 204 add(fileMenu, update);
Note:
See TracChangeset
for help on using the changeset viewer.