Changeset 9591 in josm for trunk/src


Ignore:
Timestamp:
2016-01-23T19:15:40+01:00 (4 years ago)
Author:
Don-vip
Message:

fix #12390 - rename layer does not check existing file (patch by kolesar)

File:
1 edited

Legend:

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

    r9510 r9591  
    8484                }
    8585                File newFile = new File(newname);
     86                if (!SaveActionBase.confirmOverwrite(newFile))
     87                    return;
    8688                if (Main.platform.rename(file, newFile)) {
    8789                    layer.setAssociatedFile(newFile);
Note: See TracChangeset for help on using the changeset viewer.