Changeset 35688 in osm


Ignore:
Timestamp:
2021-01-16T11:27:46+01:00 (6 weeks ago)
Author:
GerdP
Message:

fix #20395: ConcurrentModificationException: Revert can't revert 833386

  • We must execute commands with GuiHelper.runInEDT(). Regression introduced for #15906
File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetTask.java

    r35638 r35688  
    172172            return null;
    173173        }
    174         for (Command c : cmds) {
    175             if (c instanceof ConflictAddCommand) {
    176                 numberOfConflicts++;
    177             }
    178             c.executeCommand();
    179         }
     174        GuiHelper.runInEDT(() -> {
     175                for (Command c : cmds) {
     176                        if (c instanceof ConflictAddCommand) {
     177                                numberOfConflicts++;
     178                        }
     179                        c.executeCommand();
     180                }
     181        });
    180182        final String desc;
    181183        if (revertType == RevertType.FULL) {
Note: See TracChangeset for help on using the changeset viewer.