Changeset 1224 in josm for trunk/src/org
- Timestamp:
- 2009-01-09T20:58:25+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r1222 r1224 187 187 final TreeMap<String,String> all = new TreeMap<String,String>(); 188 188 for (final Entry<String,String> e : defaults.entrySet()) 189 if (e.getKey().startsWith("color.") )189 if (e.getKey().startsWith("color.") && e.getValue() != null) 190 190 all.put(e.getKey().substring(6), e.getValue()); 191 191 for (final Entry<String,String> e : properties.entrySet()) … … 238 238 properties.put(key, value); 239 239 String s = defaults.get(key); 240 if(s == null || !s.equals(value)) 241 save(); 240 save(); 242 241 firePreferenceChanged(key, value); 243 242 return true;
Note:
See TracChangeset
for help on using the changeset viewer.