Changeset 14134 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
- Timestamp:
- 2018-08-11T23:33:58+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r13434 r14134 15 15 import org.openstreetmap.josm.command.Command; 16 16 import org.openstreetmap.josm.command.DeleteCommand; 17 import org.openstreetmap.josm.data.UndoRedoHandler; 17 18 import org.openstreetmap.josm.data.osm.DataSet; 18 19 import org.openstreetmap.josm.data.osm.Node; … … 157 158 // if c is null, an error occurred or the user aborted. Don't do anything in that case. 158 159 if (c != null) { 159 MainApplication.undoRedo.add(c);160 UndoRedoHandler.getInstance().add(c); 160 161 //FIXME: This should not be required, DeleteCommand should update the selection, otherwise undo/redo won't work. 161 162 lm.getEditDataSet().setSelected(); … … 304 305 Command c = buildDeleteCommands(e, e.getModifiersEx(), false); 305 306 if (c != null) { 306 MainApplication.undoRedo.add(c);307 UndoRedoHandler.getInstance().add(c); 307 308 } 308 309 … … 355 356 if (cmd != null) { 356 357 // cmd can be null if the user cancels dialogs DialogCommand displays 357 MainApplication.undoRedo.add(cmd);358 UndoRedoHandler.getInstance().add(cmd); 358 359 for (Relation relation : toDelete) { 359 360 if (layer.data.getSelectedRelations().contains(relation)) {
Note:
See TracChangeset
for help on using the changeset viewer.