Changeset 14926 in josm


Ignore:
Timestamp:
2019-03-24T21:43:45+01:00 (4 weeks ago)
Author:
GerdP
Message:

fix #17333: Show last used tags in Add Tag Dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java

    r14509 r14926  
    520520            if (key.equals(newkey) || value == null) {
    521521                UndoRedoHandler.getInstance().add(new ChangePropertyCommand(sel, newkey, value));
    522                 AutoCompletionManager.rememberUserInput(newkey, value, true);
     522                if (value != null) {
     523                    AutoCompletionManager.rememberUserInput(newkey, value, true);
     524                    recentTags.add(new Tag(key, value));
     525                }
    523526            } else {
    524527                for (OsmPrimitive osm: sel) {
     
    697700
    698701        protected AddTagsDialog() {
    699             super(MainApplication.getMainFrame(), tr("Add value?"), tr("OK"), tr("Cancel"));
     702            super(MainApplication.getMainFrame(), tr("Add tag?"), tr("OK"), tr("Cancel"));
    700703            setButtonIcons("ok", "cancel");
    701704            setCancelButton(2);
     
    722725            mainPanel.add(keys, GBC.eop().fill(GBC.HORIZONTAL));
    723726
    724             mainPanel.add(new JLabel(tr("Please select a value")), GBC.eol());
     727            mainPanel.add(new JLabel(tr("Choose a value")), GBC.eol());
    725728            values.setEditable(true);
    726729            mainPanel.add(values, GBC.eop().fill(GBC.HORIZONTAL));
Note: See TracChangeset for help on using the changeset viewer.