From a7c0a67999c26f76d34744687f017aedf423121d Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Mon, 22 Jun 2020 11:44:00 -0600 Subject: [PATCH] FIXUP: Don't allow individual undo of address/building merges (#79) Signed-off-by: Taylor Smock --- .../backend/commands/conflation/MergeAddressBuildings.java | 2 +- .../backend/commands/conflation/MergeBuildingAddress.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/backend/commands/conflation/MergeAddressBuildings.java b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/backend/commands/conflation/MergeAddressBuildings.java index 25e48ef..551a1f8 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/backend/commands/conflation/MergeAddressBuildings.java +++ b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/backend/commands/conflation/MergeAddressBuildings.java @@ -102,7 +102,7 @@ public class MergeAddressBuildings extends AbstractConflationCommand { @Override public boolean allowUndo() { - return true; + return false; } @Override diff --git a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/backend/commands/conflation/MergeBuildingAddress.java b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/backend/commands/conflation/MergeBuildingAddress.java index a90c576..b086b66 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/backend/commands/conflation/MergeBuildingAddress.java +++ b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/backend/commands/conflation/MergeBuildingAddress.java @@ -127,7 +127,7 @@ public class MergeBuildingAddress extends AbstractConflationCommand { @Override public boolean allowUndo() { - return true; + return false; } @Override