Changeset 8248 in josm


Ignore:
Timestamp:
2015-04-23T00:38:22+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #11362 - do not confirm overwrite for OSX native file dialogs which already ask for it

File:
1 edited

Legend:

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

    r8061 r8248  
    2020import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    2121import org.openstreetmap.josm.gui.widgets.AbstractFileChooser;
     22import org.openstreetmap.josm.gui.widgets.FileChooserManager;
    2223import org.openstreetmap.josm.io.FileExporter;
    2324import org.openstreetmap.josm.tools.Shortcut;
     
    176177            }
    177178            file = new File(fn);
    178             if (!confirmOverwrite(file))
     179            // Confirm overwrite, except for OSX native file dialogs which already ask for confirmation (see #11362)
     180            if (!(Main.isPlatformOsx() && FileChooserManager.PROP_USE_NATIVE_FILE_DIALOG.get()) && !confirmOverwrite(file))
    179181                return null;
    180182        }
Note: See TracChangeset for help on using the changeset viewer.