Ignore:
Timestamp:
2017-09-14T02:25:27+02:00 (20 months ago)
Author:
bastiK
Message:

see #15229 - include support for the long type in IPreferences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java

    r12846 r12853  
    656656        Collection<String> history = Config.getPref().getList(historyKey, def);
    657657        int age = (int) (System.currentTimeMillis() / 1000 - Config.getPref().getInt(BasicUploadSettingsPanel.HISTORY_LAST_USED_KEY, 0));
    658         if (history != null && age < Main.pref.getLong(BasicUploadSettingsPanel.HISTORY_MAX_AGE_KEY, TimeUnit.HOURS.toMillis(4))
     658        if (history != null && age < Config.getPref().getLong(BasicUploadSettingsPanel.HISTORY_MAX_AGE_KEY, TimeUnit.HOURS.toMillis(4))
    659659                && !history.isEmpty()) {
    660660            return history.iterator().next();
Note: See TracChangeset for help on using the changeset viewer.