Ignore:
Timestamp:
2016-01-30T15:37:54+01:00 (4 years ago)
Author:
bastiK
Message:

applied #12380 - fixed confirmation of overwriting existing file (patch by kolesar)

File:
1 edited

Legend:

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

    r9676 r9687  
    205205            }
    206206            file = new File(fn);
    207             // Confirm overwrite, except for OSX native file dialogs which already ask for confirmation (see #11362)
    208             if (!(Main.isPlatformOsx() && FileChooserManager.PROP_USE_NATIVE_FILE_DIALOG.get()) && !confirmOverwrite(file))
     207            if (!fc.getSelectedFile().exists() && !confirmOverwrite(file))
    209208                return null;
    210209        }
Note: See TracChangeset for help on using the changeset viewer.