mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-21 15:56:56 +02:00
Deselect before deleting an entity
This avoids errors produced by attempts to generate turns for ways that were just deleted.
This commit is contained in:
@@ -36,15 +36,15 @@ iD.operations.Delete = function(selectedIDs, context) {
|
||||
}
|
||||
}
|
||||
|
||||
context.perform(
|
||||
action,
|
||||
annotation);
|
||||
|
||||
if (nextSelectedID && context.hasEntity(nextSelectedID)) {
|
||||
context.enter(iD.modes.Select(context, [nextSelectedID]));
|
||||
} else {
|
||||
context.enter(iD.modes.Browse(context));
|
||||
}
|
||||
|
||||
context.perform(
|
||||
action,
|
||||
annotation);
|
||||
};
|
||||
|
||||
operation.available = function() {
|
||||
|
||||
Reference in New Issue
Block a user