Skip to content

Commit f91ffb6

Browse files
committed
fix: initiate linetool in reload_geocode_completer not reindex_list_items
1 parent 69e5088 commit f91ffb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ORStools/gui/ORStoolsDialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ def option_chosen(name, lineEdit):
464464
for feature in data["features"]
465465
if feature["properties"]["name"] == name
466466
][0]
467+
self.line_tool = maptools.LineTool(self)
467468
self.add_geocoded_item(coords, lineEdit, name)
468469
completer.activated.disconnect()
469470
lineEdit.setText("")
@@ -666,7 +667,6 @@ def _reindex_list_items(self) -> None:
666667
self.annotations.append(annotation)
667668
self.project.annotationManager().addAnnotation(annotation)
668669
try:
669-
self.line_tool = maptools.LineTool(self)
670670
self.line_tool.create_rubber_band()
671671
except Exception as e:
672672
if "Connection refused" in str(e):

0 commit comments

Comments
 (0)