Changeset 7832 in josm for trunk/src


Ignore:
Timestamp:
2014-12-19T14:23:01+01:00 (5 years ago)
Author:
bastiK
Message:

see #6248 - fix path for Win XP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java

    r7831 r7832  
    286286    @Override
    287287    public File getDefaultCacheDirectory() {
    288         return new File(System.getenv("LOCALAPPDATA")+"/JOSM", "cache");
     288        if (p == null || "".equals(p)) {
     289            p = System.getenv("APPDATA");
     290        }
     291        return new File(new File(p, "JOSM"), "cache");
    289292    }
    290293
Note: See TracChangeset for help on using the changeset viewer.