Changeset 16840 in josm for trunk/src/org


Ignore:
Timestamp:
2020-08-03T22:16:55+02:00 (4 years ago)
Author:
simon04
Message:

fix #19316 - Don't show warning when a new relation is deleted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/DeleteAction.java

    r16365 r16840  
    115115     */
    116116    public static boolean confirmRelationDeletion(Collection<Relation> relations) {
     117        if (relations.stream().allMatch(Relation::isNew)) {
     118            return true;
     119        }
    117120        JPanel msg = new JPanel(new GridBagLayout());
    118121        msg.add(new JMultilineLabel("<html>" + trn(
Note: See TracChangeset for help on using the changeset viewer.