Ignore:
Timestamp:
2009-01-11T13:14:01+01:00 (15 years ago)
Author:
stoecker
Message:

restart-warn when changing mappaint colors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/ColorPreference.java

    r1242 r1243  
    183183
    184184    public boolean ok() {
     185        Boolean ret = false;
    185186        for (int i = 0; i < colors.getRowCount(); ++i) {
    186             Main.pref.putColor((String)colors.getValueAt(i, 0), (Color)colors.getValueAt(i, 1));
     187            String key = (String)colors.getValueAt(i, 0);
     188            if(Main.pref.putColor(key, (Color)colors.getValueAt(i, 1)))
     189            {
     190                if(key.startsWith("mappaint."))
     191                    ret = true;
     192            }
    187193        }
    188194        org.openstreetmap.josm.gui.layer.OsmDataLayer.createHatchTexture();
    189         return false;
     195        return ret;
    190196    }
    191197}
Note: See TracChangeset for help on using the changeset viewer.