Changeset 15126 in josm for trunk/src/org
- Timestamp:
- 2019-05-27T22:32:48+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r14134 r15126 11 11 import java.util.Collections; 12 12 import java.util.HashSet; 13 import java.util.List; 13 14 import java.util.Set; 15 import java.util.stream.Collectors; 14 16 15 17 import org.openstreetmap.josm.command.Command; … … 356 358 if (cmd != null) { 357 359 // cmd can be null if the user cancels dialogs DialogCommand displays 360 List<Relation> toUnselect = toDelete.stream().filter(Relation::isSelected).collect(Collectors.toList()); 358 361 UndoRedoHandler.getInstance().add(cmd); 359 for (Relation relation : toDelete) { 360 if (layer.data.getSelectedRelations().contains(relation)) { 361 layer.data.toggleSelected(relation); 362 } 363 RelationDialogManager.getRelationDialogManager().close(layer, relation); 364 } 362 toDelete.forEach(relation -> RelationDialogManager.getRelationDialogManager().close(layer, relation)); 363 toUnselect.forEach(layer.data::toggleSelected); 365 364 } 366 365 }
Note:
See TracChangeset
for help on using the changeset viewer.