Changeset 4565 in josm for trunk/src/org


Ignore:
Timestamp:
2011-11-02T14:37:39+01:00 (13 years ago)
Author:
stoecker
Message:

don't reinvent the wheel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r4564 r4565  
    555555                    JOptionPane.ERROR_MESSAGE
    556556            );
    557             if (backupFile.exists()) {
    558                 backupFile.delete();
    559             }
    560             preferenceFile.renameTo(backupFile);
     557            Main.platform.rename(preferenceFile, backupFile);
    561558            try {
    562559                resetToDefault();
Note: See TracChangeset for help on using the changeset viewer.