Ticket #18713: 18713.1.patch

File 18713.1.patch, 695 bytes (added by taylor.smock, 5 years ago)

Fix an issue where moreToolsMenu was cleared out

  • src/org/openstreetmap/josm/plugins/terracer/TerracerPlugin.java

     
    4242                .collect(Collectors.toMap(JMenuItem::getAction, component -> component));
    4343
    4444        for (final Entry<Action, Component> action : actionsMap.entrySet()) {
    45             if (actionsMap.containsKey(action.getKey())) {
     45            if (actions.contains(action.getKey())) {
    4646                moreToolsMenu.remove(action.getValue());
    4747            }
    4848        }