Ignore:
Timestamp:
2017-10-08T14:46:53+02:00 (2 years ago)
Author:
bastiK
Message:

see #15410 - fix deleting color entries; do not display unchanged layer colors (this gets excessive if user opens may gpx files over time)

File:
1 edited

Legend:

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

    r12945 r12946  
    642642        for (final Entry<String, Setting<?>> e : defaultsMap.entrySet()) {
    643643            if (e.getKey().startsWith(COLOR_PREFIX) && e.getValue() instanceof StringSetting) {
     644                if (e.getKey().startsWith(COLOR_PREFIX+"layer."))
     645                    continue; // do not add unchanged layer colors
    644646                StringSetting d = (StringSetting) e.getValue();
    645647                if (d.getValue() != null) {
Note: See TracChangeset for help on using the changeset viewer.