diff --git a/src/org/openstreetmap/josm/data/AutosaveTask.java b/src/org/openstreetmap/josm/data/AutosaveTask.java
index e0fa1b7..08edf73 100644
a
|
b
|
public class AutosaveTask extends TimerTask implements LayerChangeListener, List
|
158 | 158 | while (true) { |
159 | 159 | String filename = String.format("%1$s_%2$tY%2$tm%2$td_%2$tH%2$tM%2$tS%2$tL%3$s", |
160 | 160 | layer.layerFileName, now, index == 0 ? "" : '_' + index); |
161 | | File result = new File(autosaveDir, filename+".osm"); |
| 161 | String extension = Main.pref.get("autosave.extension", "osm"); |
| 162 | File result = new File(autosaveDir, filename + "." + extension); |
162 | 163 | try { |
163 | 164 | if (result.createNewFile()) { |
164 | 165 | File pidFile = new File(autosaveDir, filename+".pid"); |