Changeset 1659 in josm for trunk/src/org


Ignore:
Timestamp:
2009-06-10T16:19:41+02:00 (15 years ago)
Author:
stoecker
Message:

fix #2594 - patch by dmuecke - don't lose work when unmounting devices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SaveAction.java

    r1648 r1659  
    3131    @Override public File getFile(Layer layer) {
    3232        File f = layer.getAssociatedFile();
    33         if(f != null && layer instanceof GpxLayer && f.exists() && 1 !=
     33        if(f != null && ! f.exists())
     34            f=null;
     35        if(f != null && layer instanceof GpxLayer && 1 !=
    3436        new ExtendedDialog(Main.parent, tr("Overwrite"),
    3537        tr("File {0} exists. Overwrite?", f.getName()),
Note: See TracChangeset for help on using the changeset viewer.