Changeset 18756 in josm


Ignore:
Timestamp:
2023-06-14T16:14:57+02:00 (16 months ago)
Author:
taylor.smock
Message:

Fix #22845: EDT violation when fixing UntaggedNode errors when no download bounds exist

File:
1 edited

Legend:

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

    r18395 r18756  
    2424import org.openstreetmap.josm.gui.MapFrame;
    2525import org.openstreetmap.josm.gui.dialogs.DeleteFromRelationConfirmationDialog;
     26import org.openstreetmap.josm.gui.util.GuiHelper;
    2627import org.openstreetmap.josm.gui.widgets.JMultilineLabel;
    2728import org.openstreetmap.josm.tools.Pair;
     
    103104    public static boolean checkAndConfirmOutlyingDelete(Collection<? extends OsmPrimitive> primitives,
    104105            Collection<? extends OsmPrimitive> ignore) {
    105         return checkAndConfirmOutlyingOperation("delete",
     106        return Boolean.TRUE.equals(GuiHelper.runInEDTAndWaitAndReturn(() -> checkAndConfirmOutlyingOperation("delete",
    106107                tr("Delete confirmation"),
    107108                tr("You are about to delete nodes which can have other referrers not yet downloaded."
     
    114115                        + "This will cause problems because you don''t see the real object."
    115116                        + "<br>" + "Do you really want to delete?"),
    116                 primitives, ignore);
     117                primitives, ignore)));
    117118    }
    118119
Note: See TracChangeset for help on using the changeset viewer.