Changeset 9312 in josm


Ignore:
Timestamp:
2016-01-04T22:44:01+01:00 (9 years ago)
Author:
simon04
Message:

Preferences: backup before resetting the preference file

File:
1 edited

Legend:

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

    r9311 r9312  
    965965                save();
    966966            } else if (reset) {
     967                File backupFile = new File(prefDir, "preferences.xml.bak");
     968                Main.platform.rename(preferenceFile, backupFile);
    967969                Main.warn(tr("Replacing existing preference file ''{0}'' with default preference file.", preferenceFile.getAbsoluteFile()));
    968970                resetToDefault();
Note: See TracChangeset for help on using the changeset viewer.