Ticket #17333: 17333-v2.patch

File 17333-v2.patch, 1.7 KB (added by GerdP, 5 years ago)
  • src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java

     
    519519                return;
    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) {
    525528                    if (osm.get(newkey) != null) {
     
    696699        private int commandCount;
    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);
    702705            configureContextsensitiveHelp("/Dialog/AddValue", true /* show help button */);
     
    721724
    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));
    727730