Skip to content

Commit

Permalink
Properly cancel geometry editor's fill ring and split feature tools (f…
Browse files Browse the repository at this point in the history
…ixes #4869)
  • Loading branch information
nirvn committed Dec 21, 2023
1 parent bc22164 commit d95c928
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qml/geometryeditors/FillRing.qml
Expand Up @@ -77,6 +77,10 @@ VisibilityFadingRow {
addPolygonDialog.show();
}
}

onCancel: {
rubberbandModel.reset()
}
}

Dialog {
Expand Down
4 changes: 4 additions & 0 deletions src/qml/geometryeditors/SplitFeature.qml
Expand Up @@ -71,6 +71,10 @@ VisibilityFadingRow {

featureModel.currentLayer.removeSelection()
}

onCancel: {
rubberbandModel.reset()
}
}

function init(featureModel, mapSettings, editorRubberbandModel, editorRenderer)
Expand Down

1 comment on commit d95c928

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.