Changeset 2474 in josm for trunk


Ignore:
Timestamp:
2009-11-18T21:40:11+01:00 (15 years ago)
Author:
jttt
Message:

Do not call tagsChanged listeners that often, update RelationListDialog only when relation is changed. Should help a bit to #3974

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r2465 r2474  
    637637            if (!value.equals(keys.put(key, value))) {
    638638                setKeys(keys);
    639                 keysChangedImpl();
    640639            }
    641640        }
     
    651650            // TODO More effective implemenation
    652651            setKeys(keys);
    653             keysChangedImpl();
    654652        }
    655653    }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java

    r2439 r2474  
    693693
    694694    public void tagsChanged(OsmPrimitive prim) {
    695         updateList();
     695        if (prim instanceof Relation) {
     696            updateList();
     697        }
    696698    }
    697699}
Note: See TracChangeset for help on using the changeset viewer.