Changeset 4565 in josm


Ignore:
Timestamp:
Nov 2, 2011 2:37:39 PM (20 months 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.