Changeset 28405 in osm for applications/editors


Ignore:
Timestamp:
2012-05-23T19:48:39+02:00 (12 years ago)
Author:
daeron
Message:

Add a configuration variable to odbl=clean check

This patch adds a boolean configuration variable licensechange.ignore_odbl_clean to make odbl=clean check switchable.

Author: MonkZ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/licensechange/src/org/openstreetmap/josm/plugins/licensechange/LicenseChangePlugin.java

    r27470 r28405  
    200200            public void visit(Node n) {
    201201                if (!nodeUsers.containsKey(n.getId())) {
    202                     if ("clean".equals(n.get("odbl"))) {
     202                    if (("clean".equals(n.get("odbl")) && !Main.pref.getBoolean("licensechange.ignore_odbl_clean", false))) {
    203203                        nodeUsers.put(new Long(n.getId()), new HashMap<User, Severity>(Collections.singletonMap(n.getUser(), Severity.CLEAN)));
    204204                    } else {
     
    210210            public void visit(Way n) {
    211211                if (!wayUsers.containsKey(n.getId())) {
    212                     if ("clean".equals(n.get("odbl"))) {
     212                    if (("clean".equals(n.get("odbl")) && !Main.pref.getBoolean("licensechange.ignore_odbl_clean", false))) {
    213213                        wayUsers.put(new Long(n.getId()), new HashMap<User, Severity>(Collections.singletonMap(n.getUser(), Severity.CLEAN)));
    214214                    } else {
     
    220220            public void visit(Relation n) {
    221221                if (!relationUsers.containsKey(n.getId())) {
    222                     if ("clean".equals(n.get("odbl"))) {
     222                    if (("clean".equals(n.get("odbl")) && !Main.pref.getBoolean("licensechange.ignore_odbl_clean", false))) {
    223223                        relationUsers.put(new Long(n.getId()), new HashMap<User, Severity>(Collections.singletonMap(n.getUser(), Severity.CLEAN)));
    224224                    } else {
Note: See TracChangeset for help on using the changeset viewer.