Skip to content

Commit 4cc8340

Browse files
author
bordoray
committed
exclude no geometry layer to dialog
1 parent d43b7fb commit 4cc8340

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/main_dialog.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ def _process_node_recursive(self, node, parent_node):
260260
):
261261
# Unsupported QgsMapLayerType
262262
continue
263+
if not child.layer().isSpatial():
264+
# exclude no geometry layers such as CSV files
265+
continue
263266

264267
else:
265268
raise Exception("Unknown child type")

0 commit comments

Comments
 (0)