Changeset 12641 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
- Timestamp:
- 2017-08-25T03:01:22+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r12636 r12641 157 157 // if c is null, an error occurred or the user aborted. Don't do anything in that case. 158 158 if (c != null) { 159 Main .main.undoRedo.add(c);159 MainApplication.undoRedo.add(c); 160 160 //FIXME: This should not be required, DeleteCommand should update the selection, otherwise undo/redo won't work. 161 161 lm.getEditDataSet().setSelected(); … … 304 304 Command c = buildDeleteCommands(e, e.getModifiersEx(), false); 305 305 if (c != null) { 306 Main .main.undoRedo.add(c);306 MainApplication.undoRedo.add(c); 307 307 } 308 308 … … 355 355 if (cmd != null) { 356 356 // cmd can be null if the user cancels dialogs DialogCommand displays 357 Main .main.undoRedo.add(cmd);357 MainApplication.undoRedo.add(cmd); 358 358 for (Relation relation : toDelete) { 359 359 if (layer.data.getSelectedRelations().contains(relation)) {
Note:
See TracChangeset
for help on using the changeset viewer.