From d95c92879faf0759a24cc2958a9fabb53b4e3565 Mon Sep 17 00:00:00 2001 From: Mathieu Pellerin Date: Thu, 21 Dec 2023 09:54:39 +0700 Subject: [PATCH] Properly cancel geometry editor's fill ring and split feature tools (fixes #4869) --- src/qml/geometryeditors/FillRing.qml | 4 ++++ src/qml/geometryeditors/SplitFeature.qml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/qml/geometryeditors/FillRing.qml b/src/qml/geometryeditors/FillRing.qml index 67208dae0d..b1984b2ca4 100644 --- a/src/qml/geometryeditors/FillRing.qml +++ b/src/qml/geometryeditors/FillRing.qml @@ -77,6 +77,10 @@ VisibilityFadingRow { addPolygonDialog.show(); } } + + onCancel: { + rubberbandModel.reset() + } } Dialog { diff --git a/src/qml/geometryeditors/SplitFeature.qml b/src/qml/geometryeditors/SplitFeature.qml index be0b00ebec..738ea5ef98 100644 --- a/src/qml/geometryeditors/SplitFeature.qml +++ b/src/qml/geometryeditors/SplitFeature.qml @@ -71,6 +71,10 @@ VisibilityFadingRow { featureModel.currentLayer.removeSelection() } + + onCancel: { + rubberbandModel.reset() + } } function init(featureModel, mapSettings, editorRubberbandModel, editorRenderer)