Changeset 16791 in josm


Ignore:
Timestamp:
2020-07-18T00:11:09+02:00 (4 years ago)
Author:
simon04
Message:

fix #19425 - AddTagsDialog: fix handling of trustedSenders

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java

    r16471 r16791  
    293293     */
    294294    public static void addTags(String[][] keyValue, String sender, Collection<? extends OsmPrimitive> primitives) {
    295         new AddTagsDialog(keyValue, sender, primitives).showDialog();
     295        if (trustedSenders.contains(sender)) {
     296            if (MainApplication.getLayerManager().getEditDataSet() != null) {
     297                for (String[] row : keyValue) {
     298                    UndoRedoHandler.getInstance().add(new ChangePropertyCommand(primitives, row[0], row[1]));
     299                }
     300            }
     301        } else {
     302            new AddTagsDialog(keyValue, sender, primitives).showDialog();
     303        }
    296304    }
    297305}
Note: See TracChangeset for help on using the changeset viewer.