debug crash when double clic on PK combobox when no reach is selected (DIF window)

This commit is contained in:
Dylan Jeannin committed 2026-05-11 13:49:54 +02:00
1 parent faff877c80
commit a8b260ad38
1 file changed
+5 -2
+5 -2
View File
@@ -62,9 +62,12 @@ class ComboBoxDelegate(QItemDelegate):
if self._mode == "rk":
reach_id = self._ic_spec_lst[index.row()].reach
reach = next(filter(
reach = next(
filter(
lambda edge: edge.id == reach_id, self._data.edges()
))
),
None
)
if reach_id is not None:
val = list(