Changeset 1224 in josm for trunk/src


Ignore:
Timestamp:
2009-01-09T20:58:25+01:00 (16 years ago)
Author:
stoecker
Message:

fixed some prefs bugs of last version

File:
1 edited

Legend:

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

    r1222 r1224  
    187187        final TreeMap<String,String> all = new TreeMap<String,String>();
    188188        for (final Entry<String,String> e : defaults.entrySet())
    189             if (e.getKey().startsWith("color."))
     189            if (e.getKey().startsWith("color.") && e.getValue() != null)
    190190                all.put(e.getKey().substring(6), e.getValue());
    191191        for (final Entry<String,String> e : properties.entrySet())
     
    238238                properties.put(key, value);
    239239            String s = defaults.get(key);
    240             if(s == null || !s.equals(value))
    241                 save();
     240            save();
    242241            firePreferenceChanged(key, value);
    243242            return true;
Note: See TracChangeset for help on using the changeset viewer.