Ignore:
Timestamp:
2017-08-25T03:01:22+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.main.undoRedo. Replacement: gui.MainApplication.undoRedo

File:
1 edited

Legend:

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

    r12636 r12641  
    157157        // if c is null, an error occurred or the user aborted. Don't do anything in that case.
    158158        if (c != null) {
    159             Main.main.undoRedo.add(c);
     159            MainApplication.undoRedo.add(c);
    160160            //FIXME: This should not be required, DeleteCommand should update the selection, otherwise undo/redo won't work.
    161161            lm.getEditDataSet().setSelected();
     
    304304        Command c = buildDeleteCommands(e, e.getModifiersEx(), false);
    305305        if (c != null) {
    306             Main.main.undoRedo.add(c);
     306            MainApplication.undoRedo.add(c);
    307307        }
    308308
     
    355355        if (cmd != null) {
    356356            // cmd can be null if the user cancels dialogs DialogCommand displays
    357             Main.main.undoRedo.add(cmd);
     357            MainApplication.undoRedo.add(cmd);
    358358            for (Relation relation : toDelete) {
    359359                if (layer.data.getSelectedRelations().contains(relation)) {
Note: See TracChangeset for help on using the changeset viewer.