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 2e7a0f8..ede97f8 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 @@ -80,7 +80,17 @@ public class MergeAddressBuildings extends AbstractConflationCommand { final List commandList = new ArrayList<>(); if (nodesWithAddresses.size() == 1) { - commandList.add(ReplaceGeometryUtils.buildUpgradeNodeCommand(nodesWithAddresses.get(0), object)); + String currentKey = null; + try { + // Remove the key to avoid the popup from utilsplugin2 + currentKey = object.get(BUILDING_KEY); + object.remove(BUILDING_KEY); + commandList.add(ReplaceGeometryUtils.buildUpgradeNodeCommand(nodesWithAddresses.get(0), object)); + } finally { + if (currentKey != null) { + object.put(BUILDING_KEY, currentKey); + } + } } return commandList; }