Ignore:
Timestamp:
08.09.2009 22:56:02 (3 years ago)
Author:
Gubaer
Message:

fixed #3393: loooong delay when using presets with a large osm file - further improvement; next step could be to turn UploadHooks into an asynchronous task; ApiPreconditionChecker loops over all keys in all upload primitives!
fixed #3435: Switching the changeset type deletes any changeset tags that have been set
fixed #3430: Entering comment=* manually in the changeset tags dialog gets ignored
fixed #3431: Upload dialog pops up again if no comment is provided
fixed #3429: created_by=* includes the wrong language when uploading from a new layer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java

    r2040 r2081  
    99import java.util.Collection; 
    1010import java.util.Comparator; 
     11import java.util.Iterator; 
    1112import java.util.List; 
    1213import java.util.logging.Logger; 
     
    216217 
    217218    /** 
     219     * Deletes all tags with name <code>name</code> 
     220     *  
     221     * @param name the name. Ignored if null. 
     222     */ 
     223    public void delete(String name) { 
     224        if (name == null) return; 
     225        Iterator<TagModel> it = tags.iterator(); 
     226        while(it.hasNext()) { 
     227            TagModel tm = it.next(); 
     228            if (tm.getName().equals(name)) { 
     229                it.remove(); 
     230            } 
     231        } 
     232        fireTableDataChanged(); 
     233        setDirty(true); 
     234    } 
     235    /** 
    218236     * deletes the tags given by tagIndices 
    219237     * 
Note: See TracChangeset for help on using the changeset viewer.