- Timestamp:
- 2016-01-30T15:37:54+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java
r9676 r9687 205 205 } 206 206 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)) 209 208 return null; 210 209 } -
trunk/src/org/openstreetmap/josm/gui/widgets/FileChooserManager.java
r9674 r9687 348 348 } 349 349 350 if (!open && !SaveActionBase.confirmOverwrite(fc.getSelectedFile())) { 350 if (!open && !FileChooserManager.PROP_USE_NATIVE_FILE_DIALOG.get() && 351 !SaveActionBase.confirmOverwrite(fc.getSelectedFile())) { 351 352 return null; 352 353 }
Note:
See TracChangeset
for help on using the changeset viewer.