From 8497c675c64b256a948458e96d8d3935795eddca Mon Sep 17 00:00:00 2001 From: Till Frankenbach Date: Thu, 21 Nov 2024 14:20:53 +0100 Subject: [PATCH] fix: reset linetool after line is finished (#289) --- ORStools/gui/ORStoolsDialog.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ORStools/gui/ORStoolsDialog.py b/ORStools/gui/ORStoolsDialog.py index a2d16aa..7ae6372 100644 --- a/ORStools/gui/ORStoolsDialog.py +++ b/ORStools/gui/ORStoolsDialog.py @@ -675,6 +675,7 @@ def _on_linetool_map_doubleclick(self) -> None: self.line_tool.doubleClicked.disconnect() QApplication.restoreOverrideCursor() self._iface.mapCanvas().setMapTool(self.last_maptool) + self.line_tool = None self.show() def color_duplicate_items(self, list_widget):